don't run keybindings twice when the shift keysym is the same

For keys like F1-F12 the keysym with the shift is the same as without.
Avoid running keybindings bound to these keys twice.
This commit is contained in:
Guido Cella
2026-09-15 21:22:41 +02:00
parent 0f8630282d
commit bab3fdadf3
+4 -1
View File
@@ -1749,6 +1749,7 @@ keypress(struct wl_listener *listener, void *data)
consumed[event->keycode] = 1;
key->func(&key->arg);
handled = 1;
break;
}
}
}
@@ -1807,8 +1808,10 @@ keyrepeat(void *data)
for (i = 0; i < group->nsyms; i++) {
const Key *key = keybinding(group->mods, group->keysyms[i]);
if (key)
if (key) {
key->func(&key->arg);
break;
}
}
return 0;