Adapt WinKeyToggle to active keys cache

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
f/keymap-cache-redesign
Michael Richters 4 years ago committed by Jesse Vincent
parent 03a8872a95
commit 9165475da1
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -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;
}

Loading…
Cancel
Save