1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-06-01 04:16:21 +02:00

Add Ctrl-[ shortcut to x11 and wayland

Ctrl-[ shortcut is used to quit bemenu. It already works with ncurses backend
This commit is contained in:
sleich 2020-01-08 04:47:57 +03:00
parent ed31d9d559
commit 9ac860b817
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,8 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XKB_KEY_g:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
case XKB_KEY_bracketleft:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
case XKB_KEY_Escape:
return BM_KEY_ESCAPE;

View File

@ -103,6 +103,8 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XK_g:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
case XK_bracketleft:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
case XK_Escape:
return BM_KEY_ESCAPE;