Filter out modifiers key modifiers beyond Mod5 in wimenu. Closes issue #156.

This commit is contained in:
Kris Maglione 2009-11-08 16:31:43 -05:00
parent 89037e2c3b
commit 4ef9c591eb

View File

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