From a125b0179a0f4949ae18e905ff043e6020950c06 Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Thu, 4 Feb 2010 07:53:01 +0000 Subject: [PATCH] Do not cancel Alt+Tab grab due to modifier key events If the user just presses a modifier (e.g., shift) during Alt+Tab grab, we need to keep the grab in place to allow the custom Alt+Tab handler to deal with what might simply be a change of tabbing direction. https://bugzilla.gnome.org/show_bug.cgi?id=613126 --- src/core/keybindings.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index aeccf3c3c..bff47de2f 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2109,6 +2109,16 @@ process_tab_grab (MetaDisplay *display, return TRUE; } break; + case META_KEYBINDING_ACTION_NONE: + { + /* + * If this is simply user pressing the Shift key, we do not want + * to cancel the grab. + */ + if (is_modifier (display, event->xkey.keycode)) + return TRUE; + } + default: break; }