fix(core): update core to handle reset context

- mark event flags as unused for now

Fixes: #10955
This commit is contained in:
Steven R. Loomis 2024-04-08 09:35:35 -05:00
parent 3da900d273
commit 9ca4e99fb7

View file

@ -378,7 +378,7 @@ state_should_invalidate_context(km_core_state *state,
km_core_virtual_key vk,
uint16_t modifier_state,
uint8_t is_key_down,
uint16_t event_flags) {
uint16_t _kmn_unused(event_flags)) {
// if emit_keystroke is present, check if a context reset is needed
if (state_has_action_type(state, KM_CORE_IT_EMIT_KEYSTROKE)) {
if (vk == KM_CORE_VKEY_BKSP && state->context().empty()) {