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
This commit is contained in:
Tomas Frydrych 2010-02-04 07:53:01 +00:00
parent 6b69acdf8b
commit a125b0179a

View File

@ -2109,6 +2109,16 @@ process_tab_grab (MetaDisplay *display,
return TRUE; return TRUE;
} }
break; 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: default:
break; break;
} }