keybinding: ignore Mod5 when getting keysym
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
803d837d88
commit
fd8ad9d17c
|
@ -267,8 +267,8 @@ keybinding_find(const xcb_key_press_event_t *ev)
|
||||||
int l, r, mod = XUTIL_MASK_CLEAN(ev->state);
|
int l, r, mod = XUTIL_MASK_CLEAN(ev->state);
|
||||||
xcb_keysym_t keysym;
|
xcb_keysym_t keysym;
|
||||||
|
|
||||||
/* get keysym ignoring shift */
|
/* get keysym ignoring shift and mod5 */
|
||||||
keysym = key_getkeysym(ev->detail, ev->state & ~XCB_MOD_MASK_SHIFT);
|
keysym = key_getkeysym(ev->detail, ev->state & ~(XCB_MOD_MASK_SHIFT | XCB_MOD_MASK_5));
|
||||||
|
|
||||||
again:
|
again:
|
||||||
l = 0;
|
l = 0;
|
||||||
|
|
Loading…
Reference in New Issue