Merge pull request #4 from TheBaronHimself/master

Mask escape key when pressed to cancel one shot
pull/389/head
Gergely Nagy 7 years ago committed by GitHub
commit 1d4834115b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save