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:
parent
f464f0e30a
commit
c081cf7609
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue