summaryrefslogtreecommitdiffstats
path: root/sway/input_state.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-09 17:40:19 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-09 18:07:47 +0100
commitf8b260d4a1295df68ef1ff7db89f21e6032d64c7 (patch)
tree228810591abade5a021f6b2ea1da8f22826f4ee9 /sway/input_state.c
parentUnescape string after doing var replacement (diff)
downloadsway-f8b260d4a1295df68ef1ff7db89f21e6032d64c7.tar.gz
sway-f8b260d4a1295df68ef1ff7db89f21e6032d64c7.tar.zst
sway-f8b260d4a1295df68ef1ff7db89f21e6032d64c7.zip
Add support for bincode command
If a bindsym and bincode maps to the same combination, the last one will overwrite any previous mappings.
Diffstat (limited to 'sway/input_state.c')
-rw-r--r--sway/input_state.c3
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) {
73 key_state_array[i].alt_sym = key_sym; 73 key_state_array[i].alt_sym = key_sym;
74 break; 74 break;
75 } 75 }
76 if (key_sym == 0 && key_code != 0 && key_state_array[i].key_code == key_code) {
77 break;
78 }
76 } 79 }
77 return i; 80 return i;
78} 81}