Skip to content

Commit

Permalink
Update sticky_keys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
regicidalplutophage authored Dec 11, 2024
1 parent 7373fa1 commit c3bed24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kmk/modules/sticky_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c3bed24

Please sign in to comment.