From 81179aaf0eef4b12a4940c43063915b295db5b80 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 17 Nov 2017 15:20:25 +0100 Subject: [PATCH] Layer keys should not cancel OneShot Fixes #14. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/OneShot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope/OneShot.cpp b/src/Kaleidoscope/OneShot.cpp index e62c2592..a67c2908 100644 --- a/src/Kaleidoscope/OneShot.cpp +++ b/src/Kaleidoscope/OneShot.cpp @@ -153,7 +153,7 @@ Key OneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_st if (keyIsPressed(key_state)) { saveAsPrevious(mapped_key); - if (!isModifier(mapped_key)) { + if (!isModifier(mapped_key) && (mapped_key.flags != (KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP))) { if (should_mask_on_interrupt_) KeyboardHardware.maskKey(row, col); should_cancel_ = true;