Adapt WinKeyToggle to keyboard state array

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 4 years ago
parent c00bd1a0d6
commit 4fe4b2ef30
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

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