Fix release of primary keycodes

When a key was released, we were failing to send the release event explicitly. For most
plugins, this didn't matter, but it was causing a problem for Leader, which acts on
release events. By returning `EVENT_CONSUMED` instead of `OK`, we were stopping the
release event from getting through to Leader, and thus a qukey with a Leader key as its
primary keycode would fail.
pull/389/head
Michael Richters 6 years ago
parent 0dd1b5f65d
commit 4f5413c9e5

@ -312,7 +312,8 @@ EventHandlerResult Qukeys::onKeyswitchEvent(Key &mapped_key, byte row, byte col,
} }
flushQueue(queue_index); flushQueue(queue_index);
flushQueue(); flushQueue();
return EventHandlerResult::EVENT_CONSUMED; mapped_key = getDualUsePrimaryKey(mapped_key);
return EventHandlerResult::OK;
} }
// Otherwise, the key is still pressed // Otherwise, the key is still pressed

Loading…
Cancel
Save