Mask escape key when pressed to cancel one shot

pull/389/head
TheBaronHimself 7 years ago
parent a4d6a814f2
commit 8f4a34d4b9

@ -38,6 +38,8 @@ Key EscapeOneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t
if (!::OneShot.isActive()) if (!::OneShot.isActive())
return mapped_key; return mapped_key;
KeyboardHardware.maskKey(row, col);
::OneShot.cancel(); ::OneShot.cancel();
return Key_NoKey; return Key_NoKey;

Loading…
Cancel
Save