main: Let SWITCH_PANELS keybinding through at login screen

Users depend on being able to switch focus between the panel
and the login screen using ctrl-alt-tab.

Because the login screen has no overview, we were short circuiting
some code that needs to get run to support ctrl-alt-tab.

This commit changes the short-circuit code to only run for user
sessions.

https://bugzilla.gnome.org/show_bug.cgi?id=659177
This commit is contained in:
Ray Strode 2011-09-17 15:43:46 -04:00
parent 207917ba45
commit 2e48dbf6ee

View File

@ -595,9 +595,9 @@ function _globalKeyPressHandler(actor, event) {
return true;
}
// Other bindings are only available when the overview is up and
// Other bindings are only available to the user session when the overview is up and
// no modal dialog is present.
if (!overview.visible || modalCount > 1)
if (global.session_type == Shell.SessionType.USER && (!overview.visible || modalCount > 1))
return false;
// This isn't a Meta.KeyBindingAction yet