SpaceCadet: Fix flushing the on-tap action

When flushing the on-tap action, we need to use `handleKeyEvent`, because our
address may not be valid, and `handleKeyswitchEvent` will not perform the action
if the address is invalid.

This addresses .

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
master
Gergely Nagy 2 years ago
parent 62a0fae04d
commit f21dda9a51
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -193,7 +193,7 @@ void SpaceCadet::flushEvent(bool is_tap) {
event.key = map_[pending_map_index_].output; event.key = map_[pending_map_index_].output;
} }
event_queue_.shift(); event_queue_.shift();
Runtime.handleKeyswitchEvent(event); Runtime.handleKeyEvent(event);
} }
} // namespace plugin } // namespace plugin

Loading…
Cancel
Save