From dc40c8e226de65241f3e818c0f37830be4165443 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 6 Aug 2017 00:11:27 +0200 Subject: [PATCH] masking: Let the release event of a masked key through When a masked key is released, instead of unmasking it and returning, unmask it and let the event through. This fixes keyboardio/Kaleidoscope-OneShot#10. Reported-by: Craig Disselkoen Signed-off-by: Gergely Nagy --- src/key_events.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/key_events.cpp b/src/key_events.cpp index f2d28b89..f17ef1a4 100644 --- a/src/key_events.cpp +++ b/src/key_events.cpp @@ -58,8 +58,9 @@ void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState) { if (KeyboardHardware.isKeyMasked(row, col)) { if (keyToggledOff(keyState)) { KeyboardHardware.unMaskKey(row, col); + } else { + return; } - return; } for (byte i = 0; Kaleidoscope.eventHandlers[i] != NULL && i < HOOK_MAX; i++) {