Merge pull request #78 from sleich/master

Add Ctrl-[ shortcut to x11 and wayland
This commit is contained in:
Jari Vetoniemi 2020-01-08 20:11:14 +09:00 committed by GitHub
commit 98f7c806d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;