Skip to content

Commit

Permalink
Honour multi keypress delay for NVDA key
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleB79 committed Sep 25, 2024
1 parent 9fe4541 commit 88d479c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/keyboardHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 88d479c

Please sign in to comment.