From f21dda9a51262c549f2002ea3b58fbb2894e5d26 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 28 Sep 2022 00:24:28 +0200 Subject: [PATCH] SpaceCadet: Fix flushing the on-tap action When flushing the on-tap action, we need to use `handleKeyEvent`, because our address may not be valid, and `handleKeyswitchEvent` will not perform the action if the address is invalid. This addresses keyboardio/Chrysalis#1055. Signed-off-by: Gergely Nagy --- .../src/kaleidoscope/plugin/SpaceCadet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.cpp b/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.cpp index 0bb0a7f9..939c47a9 100644 --- a/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.cpp +++ b/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.cpp @@ -193,7 +193,7 @@ void SpaceCadet::flushEvent(bool is_tap) { event.key = map_[pending_map_index_].output; } event_queue_.shift(); - Runtime.handleKeyswitchEvent(event); + Runtime.handleKeyEvent(event); } } // namespace plugin