mirror of
https://github.com/swaywm/sway.git
synced 2026-03-31 07:11:24 -04:00
Add support for bincode command
If a bindsym and bincode maps to the same combination, the last one will overwrite any previous mappings.
This commit is contained in:
parent
cb8ac7fd4a
commit
f8b260d4a1
5 changed files with 105 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue