diff options
| author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 04:43:29 +0200 | 
|---|---|---|
| committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 04:51:02 +0200 | 
| commit | 7d019e767b8dc3e69d6f17ad4f4d69e3948257e1 (patch) | |
| tree | c6b85b6d3586c3154c9a8a9b9a9b235651e91a2a /lib | |
| parent | 41e9000dd60aa5da54fc43fd26bf4628246de973 (diff) | |
| download | bemenu-7d019e767b8dc3e69d6f17ad4f4d69e3948257e1.tar.gz bemenu-7d019e767b8dc3e69d6f17ad4f4d69e3948257e1.tar.bz2 bemenu-7d019e767b8dc3e69d6f17ad4f4d69e3948257e1.zip  | |
Bind alt+h and alt+l as well
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/renderers/wayland/wayland.c | 4 | ||||
| -rw-r--r-- | lib/renderers/x11/x11.c | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/renderers/wayland/wayland.c b/lib/renderers/wayland/wayland.c index e7339ff..c348c7a 100644 --- a/lib/renderers/wayland/wayland.c +++ b/lib/renderers/wayland/wayland.c @@ -113,7 +113,7 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)              return (mods & MOD_CTRL ? BM_KEY_DOWN : BM_KEY_UNICODE);          case XKB_KEY_l: -            return (mods & MOD_CTRL ? BM_KEY_LEFT : BM_KEY_UNICODE); +            return (mods & MOD_CTRL ? BM_KEY_LEFT : (mods & MOD_ALT ? BM_KEY_DOWN : BM_KEY_UNICODE));          case XKB_KEY_f:              return (mods & MOD_CTRL ? BM_KEY_RIGHT : BM_KEY_UNICODE); @@ -125,7 +125,7 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)              return (mods & MOD_CTRL ? BM_KEY_END : BM_KEY_UNICODE);          case XKB_KEY_h: -            return (mods & MOD_CTRL ? BM_KEY_BACKSPACE : BM_KEY_UNICODE); +            return (mods & MOD_CTRL ? BM_KEY_BACKSPACE : (mods & MOD_ALT ? BM_KEY_UP : BM_KEY_UNICODE));          case XKB_KEY_u:              return (mods & MOD_CTRL ? BM_KEY_LINE_DELETE_LEFT : (mods & MOD_ALT ? BM_KEY_PAGE_UP : BM_KEY_UNICODE)); diff --git a/lib/renderers/x11/x11.c b/lib/renderers/x11/x11.c index 88baee8..3e991c9 100644 --- a/lib/renderers/x11/x11.c +++ b/lib/renderers/x11/x11.c @@ -102,7 +102,7 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)              return (mods & MOD_CTRL ? BM_KEY_DOWN : BM_KEY_UNICODE);          case XK_l: -            return (mods & MOD_CTRL ? BM_KEY_LEFT : BM_KEY_UNICODE); +            return (mods & MOD_CTRL ? BM_KEY_LEFT : (mods & MOD_ALT ? BM_KEY_DOWN : BM_KEY_UNICODE));          case XK_f:              return (mods & MOD_CTRL ? BM_KEY_RIGHT : BM_KEY_UNICODE); @@ -114,7 +114,7 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)              return (mods & MOD_CTRL ? BM_KEY_END : BM_KEY_UNICODE);          case XK_h: -            return (mods & MOD_CTRL ? BM_KEY_BACKSPACE : BM_KEY_UNICODE); +            return (mods & MOD_CTRL ? BM_KEY_BACKSPACE : (mods & MOD_ALT ? BM_KEY_UP : BM_KEY_UNICODE));          case XK_u:              return (mods & MOD_CTRL ? BM_KEY_LINE_DELETE_LEFT : (mods & MOD_ALT ? BM_KEY_PAGE_UP : BM_KEY_UNICODE));  | 
