PrefixLayer: clear only modifiers during prefix

Signed-off-by: iliana etaoin <iliana@buttslol.net>
pull/1187/head
iliana etaoin 3 years ago
parent 06aebb42b9
commit 3da0ad457a

@ -56,10 +56,8 @@ EventHandlerResult PrefixLayer::onKeyEvent(KeyEvent &event) {
}
EventHandlerResult PrefixLayer::onAddToReport(Key key) {
if (current_prefix_ != Key_NoKey) {
if (current_prefix_ != key) {
return EventHandlerResult::ABORT;
}
if (current_prefix_ != Key_NoKey && current_prefix_ != key && key.isKeyboardModifier()) {
return EventHandlerResult::ABORT;
}
return EventHandlerResult::OK;

Loading…
Cancel
Save