From 4fe4b2ef30d30051f8c9abaae799710010afb11f Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Wed, 18 Nov 2020 13:23:06 -0600 Subject: [PATCH] Adapt WinKeyToggle to keyboard state array Signed-off-by: Michael Richters --- .../src/kaleidoscope/plugin/WinKeyToggle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Kaleidoscope-WinKeyToggle/src/kaleidoscope/plugin/WinKeyToggle.cpp b/plugins/Kaleidoscope-WinKeyToggle/src/kaleidoscope/plugin/WinKeyToggle.cpp index 89ce0a26..2cd3a328 100644 --- a/plugins/Kaleidoscope-WinKeyToggle/src/kaleidoscope/plugin/WinKeyToggle.cpp +++ b/plugins/Kaleidoscope-WinKeyToggle/src/kaleidoscope/plugin/WinKeyToggle.cpp @@ -27,8 +27,10 @@ EventHandlerResult WinKeyToggle::onKeyswitchEvent(Key &key, KeyAddr key_addr, ui if (!enabled_) return EventHandlerResult::OK; - if (key == Key_LeftGui || key == Key_RightGui) + if (key == Key_LeftGui || key == Key_RightGui) { + key = Key_NoKey; return EventHandlerResult::EVENT_CONSUMED; + } return EventHandlerResult::OK; }