Skip to content

Commit

Permalink
Fix sequences.py
Browse files Browse the repository at this point in the history
  • Loading branch information
regicidalplutophage authored and xs5871 committed Jul 11, 2023
1 parent 3b29d75 commit 8efd8d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kmk/handlers/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ def sequence_press_handler(key, keyboard, KC, *args, **kwargs):

for ikey in key.meta.seq:
if not getattr(ikey, 'no_press', None):
keyboard.process_key(ikey, True)
keyboard.add_key(ikey)
keyboard._send_hid()
if not getattr(ikey, 'no_release', None):
keyboard.process_key(ikey, False)
keyboard.remove_key(ikey)
keyboard._send_hid()
else:
keyboard.tap_key(ikey)
keyboard._send_hid()

keyboard.keys_pressed = oldkeys_pressed
Expand Down

0 comments on commit 8efd8d4

Please sign in to comment.