Disable left/right workspace switching in the overview

Make the overview match the main view so only up/down can be used
to switch workspaces (matching the visuals), and not left/right
as well.

https://bugzilla.gnome.org/show_bug.cgi?id=641887
This commit is contained in:
Owen W. Taylor 2011-02-09 11:43:58 -05:00
parent ef8c9e0abb
commit 739399eb2e

View File

@ -446,12 +446,15 @@ function _globalKeyPressHandler(actor, event) {
} }
switch (action) { switch (action) {
case Meta.KeyBindingAction.WORKSPACE_LEFT: // left/right would effectively act as synonyms for up/down if we enabled them;
wm.actionMoveWorkspaceLeft(); // but that could be considered confusing; we also disable them in the main view.
return true; //
case Meta.KeyBindingAction.WORKSPACE_RIGHT: // case Meta.KeyBindingAction.WORKSPACE_LEFT:
wm.actionMoveWorkspaceRight(); // wm.actionMoveWorkspaceLeft();
return true; // return true;
// case Meta.KeyBindingAction.WORKSPACE_RIGHT:
// wm.actionMoveWorkspaceRight();
// return true;
case Meta.KeyBindingAction.WORKSPACE_UP: case Meta.KeyBindingAction.WORKSPACE_UP:
wm.actionMoveWorkspaceUp(); wm.actionMoveWorkspaceUp();
return true; return true;