opt: normal num key match KP_ num key in keybind

This commit is contained in:
DreamMaoMao 2025-04-22 09:16:14 +08:00
parent bb381c3051
commit 2c2c99aa50
3 changed files with 60 additions and 42 deletions

View file

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