From 71dce27a483744f3ac7186e9113a5ef43a7c2e2f Mon Sep 17 00:00:00 2001 From: "James N. V. Cash" Date: Thu, 2 Nov 2017 15:20:21 -0400 Subject: [PATCH] Don't cancel one-shot if other key pressed is a modifier --- 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 a625e024..639ec457 100644 --- a/src/Kaleidoscope/OneShot.cpp +++ b/src/Kaleidoscope/OneShot.cpp @@ -151,7 +151,7 @@ Key OneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_st // ordinary key here, with some event - if (keyIsPressed(key_state)) { + if (keyIsPressed(key_state) && !isModifier(mapped_key)) { if (should_mask_on_interrupt_) KeyboardHardware.maskKey(row, col); saveAsPrevious(mapped_key);