Fix layer tap interrupted

This commit is contained in:
xs5871
2023-03-13 22:14:49 +00:00
committed by xs5871
parent 878fe0deca
commit 26bf630608
6 changed files with 38 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ class OneShot(HoldTap):
elif state.activated == ActivationType.INTERRUPTED:
if is_pressed:
send_buffer = True
self.key_buffer.insert(0, (0, key, False))
self.key_buffer.insert(0, (None, key, False))
if send_buffer:
self.key_buffer.append((int_coord, current_key, is_pressed))