Fix crash when typing quickly on a split board
This commit is contained in:
parent
6c2d64843b
commit
30252099cd
@ -1,5 +1,7 @@
|
|||||||
from supervisor import ticks_ms
|
from supervisor import ticks_ms
|
||||||
|
|
||||||
|
from keypad import Event as KeyEvent
|
||||||
|
|
||||||
from kmk.consts import KMK_RELEASE, UnicodeMode
|
from kmk.consts import KMK_RELEASE, UnicodeMode
|
||||||
from kmk.hid import BLEHID, USBHID, AbstractHID, HIDModes
|
from kmk.hid import BLEHID, USBHID, AbstractHID, HIDModes
|
||||||
from kmk.keys import KC
|
from kmk.keys import KC
|
||||||
@ -502,7 +504,9 @@ class KMKKeyboard:
|
|||||||
for matrix in self.matrix:
|
for matrix in self.matrix:
|
||||||
update = matrix.scan_for_changes()
|
update = matrix.scan_for_changes()
|
||||||
if update:
|
if update:
|
||||||
self.matrix_update = update
|
self.matrix_update = KeyEvent(
|
||||||
|
key_number=update.key_number, pressed=update.pressed
|
||||||
|
)
|
||||||
break
|
break
|
||||||
self.sandbox.secondary_matrix_update = self.secondary_matrix_update
|
self.sandbox.secondary_matrix_update = self.secondary_matrix_update
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user