From 88d479cb345c67f889b855bbbebdc8b211c2c1f8 Mon Sep 17 00:00:00 2001 From: Cyrille Bougot Date: Wed, 25 Sep 2024 23:37:01 +0200 Subject: [PATCH] Honour multi keypress delay for NVDA key --- source/keyboardHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/keyboardHandler.py b/source/keyboardHandler.py index 5154af0c548..f94c18cb980 100644 --- a/source/keyboardHandler.py +++ b/source/keyboardHandler.py @@ -2,7 +2,7 @@ # A part of NonVisual Desktop Access (NVDA) # This file is covered by the GNU General Public License. # See the file COPYING for more details. -# Copyright (C) 2006-2023 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Babbage B.V., Cyrille Bougot +# Copyright (C) 2006-2024 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Babbage B.V., Cyrille Bougot """Keyboard support""" @@ -203,7 +203,7 @@ def internal_keyDownEvent(vkCode, scanCode, extended, injected): or ( keyCode == lastNVDAModifier and lastNVDAModifierReleaseTime - and time.time() - lastNVDAModifierReleaseTime < 0.5 + and time.time() - lastNVDAModifierReleaseTime < config.conf["keyboard"]["multiPressTimeout"] ) ): # The user wants the key to serve its normal function instead of acting as an NVDA modifier key.