feat:Make all the keybind keys case-insensitive

This commit is contained in:
DreamMaoMao 2025-04-18 21:59:29 +08:00
parent 7eac47b857
commit 2e02987128
4 changed files with 3 additions and 27 deletions

View file

@ -3716,7 +3716,7 @@ keybinding(uint32_t mods, xkb_keysym_t sym) {
if (config.key_bindings_count < 1)
break;
k = &config.key_bindings[ji];
if (CLEANMASK(mods) == CLEANMASK(k->mod) && sym == k->keysym && k->func) {
if (CLEANMASK(mods) == CLEANMASK(k->mod) && xkb_keysym_to_upper(sym) == k->keysym && k->func) {
k->func(&k->arg);
handled = 1;
}