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

Add C-g shortcut to x11 and wayland

This commit is contained in:
Sauyon Lee 2019-07-13 00:46:18 +01:00
parent f464f0e30a
commit c081cf7609
No known key found for this signature in database
GPG Key ID: B9BCED3EBA26418A
2 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,8 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XKB_KEY_Return:
return (mods & MOD_CTRL ? BM_KEY_CONTROL_RETURN : (mods & MOD_SHIFT ? BM_KEY_SHIFT_RETURN : BM_KEY_RETURN));
case XKB_KEY_g:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
case XKB_KEY_Escape:
return BM_KEY_ESCAPE;

View File

@ -101,6 +101,8 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XK_Return:
return (mods & MOD_CTRL ? BM_KEY_CONTROL_RETURN : (mods & MOD_SHIFT ? BM_KEY_SHIFT_RETURN : BM_KEY_RETURN));
case XK_g:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
case XK_Escape:
return BM_KEY_ESCAPE;