diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-09 12:10:37 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-09 12:10:37 -0500 |
commit | 7388e1ecd8ba90f80156837d550087334a2935db (patch) | |
tree | 74976999f5b0aab279bc87691f4ce8af2e0ba9a9 /sway/input_state.c | |
parent | b4ea9d492cf6b7c4cd871cfc4da98547596acd63 (diff) | |
parent | f8b260d4a1295df68ef1ff7db89f21e6032d64c7 (diff) |
Merge pull request #442 from mikkeloscar/bincode
Add support for bincode command
Diffstat (limited to 'sway/input_state.c')
-rw-r--r-- | sway/input_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input_state.c b/sway/input_state.c index 86868083..41ec5712 100644 --- a/sway/input_state.c +++ b/sway/input_state.c @@ -73,6 +73,9 @@ static uint8_t find_key(uint32_t key_sym, uint32_t key_code, bool update) { key_state_array[i].alt_sym = key_sym; break; } + if (key_sym == 0 && key_code != 0 && key_state_array[i].key_code == key_code) { + break; + } } return i; } |