diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input_state.c b/sway/input_state.c index 25308a77..58619d1f 100644 --- a/sway/input_state.c +++ b/sway/input_state.c @@ -36,8 +36,8 @@ static uint8_t find_key(uint32_t key_sym, uint32_t key_code, bool update) { if (0 == key_sym && 0 == key_code && key_state_array[i].key_sym == 0) { break; } - if (key_state_array[i].key_sym == key_sym - || key_state_array[i].alt_sym == key_sym) { + if (key_sym != 0 && (key_state_array[i].key_sym == key_sym + || key_state_array[i].alt_sym == key_sym)) { break; } if (update && key_state_array[i].key_code == key_code) { |