forked from RepoMirrors/bemenu
Merge pull request #78 from sleich/master
Add Ctrl-[ shortcut to x11 and wayland
This commit is contained in:
commit
98f7c806d9
@ -124,6 +124,8 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
|
|||||||
|
|
||||||
case XKB_KEY_g:
|
case XKB_KEY_g:
|
||||||
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
|
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
|
||||||
|
case XKB_KEY_bracketleft:
|
||||||
|
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
|
||||||
case XKB_KEY_Escape:
|
case XKB_KEY_Escape:
|
||||||
return BM_KEY_ESCAPE;
|
return BM_KEY_ESCAPE;
|
||||||
|
|
||||||
|
@ -103,6 +103,8 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
|
|||||||
|
|
||||||
case XK_g:
|
case XK_g:
|
||||||
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
|
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
|
||||||
|
case XK_bracketleft:
|
||||||
|
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
|
||||||
case XK_Escape:
|
case XK_Escape:
|
||||||
return BM_KEY_ESCAPE;
|
return BM_KEY_ESCAPE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user