[gnome-shell] Disable left/right workspace switching in the overview



commit 739399eb2ea289db24566a9b53df6c880130500e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Feb 9 11:43:58 2011 -0500

    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

 js/ui/main.js |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index d9569cb..8f2c1e9 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -446,12 +446,15 @@ function _globalKeyPressHandler(actor, event) {
     }
 
     switch (action) {
-        case Meta.KeyBindingAction.WORKSPACE_LEFT:
-            wm.actionMoveWorkspaceLeft();
-            return true;
-        case Meta.KeyBindingAction.WORKSPACE_RIGHT:
-            wm.actionMoveWorkspaceRight();
-            return true;
+        // left/right would effectively act as synonyms for up/down if we enabled them;
+        // but that could be considered confusing; we also disable them in the main view.
+        //
+        // case Meta.KeyBindingAction.WORKSPACE_LEFT:
+        //     wm.actionMoveWorkspaceLeft();
+        //     return true;
+        // case Meta.KeyBindingAction.WORKSPACE_RIGHT:
+        //     wm.actionMoveWorkspaceRight();
+        //     return true;
         case Meta.KeyBindingAction.WORKSPACE_UP:
             wm.actionMoveWorkspaceUp();
             return true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]