From c3bed24a3ca7285cd695b77857dc24e02baa8c8a Mon Sep 17 00:00:00 2001 From: "regicidal.plutophage" <36969337+regicidalplutophage@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:36:15 +0300 Subject: [PATCH] Update sticky_keys.py --- kmk/modules/sticky_keys.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kmk/modules/sticky_keys.py b/kmk/modules/sticky_keys.py index fd2a01c7e..d6060a55a 100644 --- a/kmk/modules/sticky_keys.py +++ b/kmk/modules/sticky_keys.py @@ -82,10 +82,12 @@ def process_key(self, keyboard, current_key, is_pressed, int_coord): # Defer sticky release until last other key is released. if key.defer_release: if not is_pressed and len(keyboard._coordkeys_pressed) <= 1: + keyboard.cancel_timeout(key.timeout) self.deactivate(keyboard, key) # Release sticky key; if it's a new key pressed: delay # propagation until after the sticky release. else: + keyboard.cancel_timeout(key.timeout) self.deactivate(keyboard, key) delay_current = is_pressed