add continue-with-module-nr-idx to key processing
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user