From 1e0ac664fe25575dfec9cfd4d64c664462ac38b6 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 26 Aug 2018 22:34:39 +0200 Subject: [PATCH] When seeing a modifier key, don't set last_pressed_position_ We do not want modifier keys to abort the TopsyTurvy magic. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/TopsyTurvy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope/TopsyTurvy.cpp b/src/Kaleidoscope/TopsyTurvy.cpp index fef8864f..5c6ae6ed 100644 --- a/src/Kaleidoscope/TopsyTurvy.cpp +++ b/src/Kaleidoscope/TopsyTurvy.cpp @@ -35,7 +35,7 @@ EventHandlerResult TopsyTurvy::onKeyswitchEvent(Key &mapped_key, byte row, byte bitWrite(mod_state_, 1, keyIsPressed(key_state)); if (mapped_key < ranges::TT_FIRST || mapped_key > ranges::TT_LAST) { - if (keyToggledOn(key_state)) { + if (keyToggledOn(key_state) && (mapped_key < Key_LeftControl || mapped_key > Key_RightGui)) { last_pressed_position_ = row * COLS + col; }