Enable multiple keys bindings to be executed with the same key press event
This commit is contained in:
parent
cc56ccd2e9
commit
b2261160b4
3
event.c
3
event.c
|
@ -343,10 +343,7 @@ event_handle_keypress(XEvent *e)
|
||||||
for(k = globalconf.keys; k; k = k->next)
|
for(k = globalconf.keys; k; k = k->next)
|
||||||
if(ev->keycode == k->keycode &&
|
if(ev->keycode == k->keycode &&
|
||||||
k->func && CLEANMASK(k->mod) == CLEANMASK(ev->state))
|
k->func && CLEANMASK(k->mod) == CLEANMASK(ev->state))
|
||||||
{
|
|
||||||
k->func(screen, k->arg);
|
k->func(screen, k->arg);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Handle XCrossing events on leave
|
/** Handle XCrossing events on leave
|
||||||
|
|
Loading…
Reference in New Issue