diff --git a/js/ui/altTab.js b/js/ui/altTab.js index c734deaca..efbb23827 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -400,9 +400,9 @@ const WindowSwitcherPopup = new Lang.Class({ this._select(1); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { if (action == Meta.KeyBindingAction.SWITCH_WINDOWS) { - this._select(backwards ? this._previous() : this._next()); + this._select(this._next()); } else if (action == Meta.KeyBindingAction.SWITCH_WINDOWS_BACKWARD) { this._select(this._previous()); } else { diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 2d4ec2ab3..ccb774de3 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -178,7 +178,7 @@ const SwitcherPopup = new Lang.Class({ return mod(this._selectedIndex - 1, this._items.length); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { throw new Error('Not implemented'); },