From 9165475da194ab3125b8c4c8ecff1648e3bf9a0a Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Wed, 18 Nov 2020 13:23:06 -0600 Subject: [PATCH] Adapt WinKeyToggle to active keys cache Signed-off-by: Michael Richters --- src/kaleidoscope/plugin/WinKeyToggle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kaleidoscope/plugin/WinKeyToggle.cpp b/src/kaleidoscope/plugin/WinKeyToggle.cpp index 89ce0a26..2cd3a328 100644 --- a/src/kaleidoscope/plugin/WinKeyToggle.cpp +++ b/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; }