diff options
author | Pierre-Louis Dubouilh <[email protected]> | 2017-07-13 14:11:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-14 10:47:21 +0200 |
commit | 7c69bcf4d5b195902c770bcbf84bd8b8c3427059 (patch) | |
tree | 96d21ee592643d52633b50c0c3886bc4968642a6 /src/core | |
parent | c4750c85961777e6ab00b46fb12b1ba0253796d5 (diff) | |
download | marco-7c69bcf4d5b195902c770bcbf84bd8b8c3427059.tar.bz2 marco-7c69bcf4d5b195902c770bcbf84bd8b8c3427059.tar.xz |
Alt/tab - define arrow keycode + numpad arrows
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/keybindings.c | 4 | ||||
-rw-r--r-- | src/core/keybindings.h | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c index e764a4e7..fe5f0f00 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2220,9 +2220,9 @@ process_tab_grab (MetaDisplay *display, } /* Allow use of arrows while in window switching mode */ - if (event->xkey.keycode == 114) + if (event->xkey.keycode == ARROW_RIGHT || event->xkey.keycode == ARROW_RIGHT_PAD) key_used = TRUE; - else if (event->xkey.keycode == 113) + else if (event->xkey.keycode == ARROW_LEFT || event->xkey.keycode == ARROW_LEFT_PAD) { key_used = TRUE; backward = TRUE; diff --git a/src/core/keybindings.h b/src/core/keybindings.h index e1fa276e..a34524a0 100644 --- a/src/core/keybindings.h +++ b/src/core/keybindings.h @@ -29,6 +29,12 @@ #ifndef META_KEYBINDINGS_H #define META_KEYBINDINGS_H +#define ARROW_LEFT 113 +#define ARROW_LEFT_PAD 83 + +#define ARROW_RIGHT 114 +#define ARROW_RIGHT_PAD 85 + #include "display-private.h" #include "window.h" |