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:
Mikkel Oscar Lyderik 2016-01-09 17:40:19 +01:00
parent cb8ac7fd4a
commit f8b260d4a1
5 changed files with 105 additions and 7 deletions

View file

@ -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;
}