[gnome-shell-extensions] alternateTab: Don't take over 'switch-group' shortcuts



commit 0cdae2dae04a62a760dc7fa06e1de891338b89a0
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 16 15:18:13 2016 +0200

    alternateTab: Don't take over 'switch-group' shortcuts
    
    The original extension author really hated the app switcher with a
    passion and took over all its uses, but there's really no reason
    to replace the 'switch-group' shortcuts - not least because the
    window switcher doesn't implement switching between windows of
    a single application. So just keep the extension to making the
    'switch-application' shortcuts behave as 'switch-windows' for the
    "classic" session (and all users who rather install an extension
    than change shortcut settings).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771531

 extensions/alternate-tab/extension.js |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/extensions/alternate-tab/extension.js b/extensions/alternate-tab/extension.js
index 7a5ee17..88e3639 100644
--- a/extensions/alternate-tab/extension.js
+++ b/extensions/alternate-tab/extension.js
@@ -23,11 +23,9 @@ function enable() {
     AltTab.WindowSwitcherPopup.prototype._keyPressHandler = function(keysym, action) {
         switch(action) {
             case Meta.KeyBindingAction.SWITCH_APPLICATIONS:
-            case Meta.KeyBindingAction.SWITCH_GROUP:
               action = Meta.KeyBindingAction.SWITCH_WINDOWS;
               break;
             case Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD:
-            case Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD:
               action = Meta.KeyBindingAction.SWITCH_WINDOWS_BACKWARD;
               break;
         }
@@ -46,18 +44,14 @@ function enable() {
     };
 
     setKeybinding('switch-applications', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher));
-    setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher));
     setKeybinding('switch-applications-backward', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher));
-    setKeybinding('switch-group-backward', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher));
 }
 
 function disable() {
     var prop;
 
     setKeybinding('switch-applications', Lang.bind(Main.wm, Main.wm._startSwitcher));
-    setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._startSwitcher));
     setKeybinding('switch-applications-backward', Lang.bind(Main.wm, Main.wm._startSwitcher));
-    setKeybinding('switch-group-backward', Lang.bind(Main.wm, Main.wm._startSwitcher));
 
     for (prop in injections)
         AltTab.WindowSwitcherPopup.prototype[prop] = injections[prop];


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