Fix the issue #256 by changing the timing to set True fo the hid_pending flag.
This commit is contained in:
committed by
Josh Klar
parent
72943a8fe1
commit
235560bf72
@@ -13,18 +13,17 @@ class ModTap(HoldTap):
|
||||
on_release=self.ht_released,
|
||||
)
|
||||
|
||||
def ht_activate_hold(self, key, keyboard, *args, **kwargs):
|
||||
def before_hid_send(self, keyboard):
|
||||
keyboard.hid_pending = True
|
||||
|
||||
def ht_activate_hold(self, key, keyboard, *args, **kwargs):
|
||||
keyboard.keys_pressed.add(key.meta.mods)
|
||||
|
||||
def ht_deactivate_hold(self, key, keyboard, *args, **kwargs):
|
||||
keyboard.hid_pending = True
|
||||
keyboard.keys_pressed.discard(key.meta.mods)
|
||||
|
||||
def ht_activate_tap(self, key, keyboard, *args, **kwargs):
|
||||
keyboard.hid_pending = True
|
||||
keyboard.keys_pressed.add(key.meta.kc)
|
||||
|
||||
def ht_deactivate_tap(self, key, keyboard, *args, **kwargs):
|
||||
keyboard.hid_pending = True
|
||||
keyboard.keys_pressed.discard(key.meta.kc)
|
||||
|
Reference in New Issue
Block a user