fix late release of oneshot keys

This commit is contained in:
xs5871 authored and Kyle Brown committed 2022-04-17 18:33:24 -07:00
1 parent f7dac9e96e
commit 63973e4a6e
2 files changed
+54 -4

No files matched your search

+1 -1
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