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
This commit is contained in:
Florian Müllner
2016-09-16 15:18:13 +02:00
parent b74c390e1b
commit 0cdae2dae0

View File

@@ -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];