add continue-with-module-nr-idx to key processing

This commit is contained in:
xs5871
2022-07-27 15:17:50 +00:00
committed by Kyle Brown
parent f62d32157a
commit 9d555209b8
4 changed files with 12 additions and 28 deletions

View File

@@ -87,20 +87,6 @@ class Layers(HoldTap):
return current_key
def send_key_buffer(self, keyboard):
for (int_coord, old_key) in self.key_buffer:
new_key = keyboard._find_key_in_map(int_coord)
# adding keys late to _coordkeys_pressed isn't pretty,
# but necessary to mitigate race conditions when multiple
# keys are pressed during a tap-interrupted hold-tap.
keyboard._coordkeys_pressed[int_coord] = new_key
new_key.on_press(keyboard)
keyboard._send_hid()
self.key_buffer.clear()
def _df_pressed(self, key, keyboard, *args, **kwargs):
'''
Switches the default layer