From 8a426cc3e3d25dd9a24f6342d6d293b83a43b981 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 26 Aug 2018 21:48:12 +0200 Subject: [PATCH] Drop the idle-case check We're not calling `onKeyswitchEvent` in the idle cases anymore, drop the check for a few bytes saved. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/TopsyTurvy.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Kaleidoscope/TopsyTurvy.cpp b/src/Kaleidoscope/TopsyTurvy.cpp index 6685a647..a9930924 100644 --- a/src/Kaleidoscope/TopsyTurvy.cpp +++ b/src/Kaleidoscope/TopsyTurvy.cpp @@ -34,8 +34,6 @@ EventHandlerResult TopsyTurvy::onKeyswitchEvent(Key &mapped_key, byte row, byte if (mapped_key.raw == Key_RightShift.raw) bitWrite(mod_state_, 1, keyIsPressed(key_state)); - if (!keyIsPressed(key_state) && !keyWasPressed(key_state)) - return EventHandlerResult::OK; if (mapped_key < ranges::TT_FIRST || mapped_key > ranges::TT_LAST) return EventHandlerResult::OK;