mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Filter out modifiers key modifiers beyond Mod5 in wimenu. Closes issue #156.
This commit is contained in:
parent
89037e2c3b
commit
4ef9c591eb
@ -82,7 +82,7 @@ find_key(char *key, long mask) {
|
|||||||
if(!strcmp(key, "ISO_Left_Tab"))
|
if(!strcmp(key, "ISO_Left_Tab"))
|
||||||
key = "Tab";
|
key = "Tab";
|
||||||
|
|
||||||
mask &= ~(numlock | LockMask);
|
mask &= ~(numlock | LockMask) & ((1<<8) - 1);
|
||||||
for(k=bindings; k; k=k->next)
|
for(k=bindings; k; k=k->next)
|
||||||
if(!strcasecmp(k->key, key) && k->mask == mask)
|
if(!strcasecmp(k->key, key) && k->mask == mask)
|
||||||
return k->action;
|
return k->action;
|
||||||
|
Loading…
Reference in New Issue
Block a user