fix late release of oneshot keys

This commit is contained in:
xs5871
2022-04-16 10:52:43 +00:00
committed by Kyle Brown
parent f7dac9e96e
commit 63973e4a6e
2 changed files with 54 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ class OneShot(HoldTap):
state.activated = ActivationType.HOLD_TIMEOUT
elif state.activated == ActivationType.RELEASED and is_pressed:
state.activated = ActivationType.INTERRUPTED
elif state.activated == ActivationType.INTERRUPTED and not is_pressed:
elif state.activated == ActivationType.INTERRUPTED:
self.ht_released(key, keyboard)
return current_key