diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 4960b55be..c734deaca 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -151,13 +151,13 @@ const AppSwitcherPopup = new Lang.Class({ this._items[this._selectedIndex].cachedWindows.length); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { if (action == Meta.KeyBindingAction.SWITCH_GROUP) { - this._select(this._selectedIndex, backwards ? this._previousWindow() : this._nextWindow()); + this._select(this._selectedIndex, this._nextWindow()); } else if (action == Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD) { this._select(this._selectedIndex, this._previousWindow()); } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS) { - this._select(backwards ? this._previous() : this._next()); + this._select(this._next()); } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD) { this._select(this._previous()); } else if (this._thumbnailsFocused) { diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js index 570c73da3..fc884ae17 100644 --- a/js/ui/ctrlAltTab.js +++ b/js/ui/ctrlAltTab.js @@ -156,11 +156,11 @@ const CtrlAltTabPopup = new Lang.Class({ this._select(this._selectedIndex); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { if (action == Meta.KeyBindingAction.SWITCH_PANELS) - this._select(backwards ? this._previous() : this._next()); + this._select(this._next()); else if (action == Meta.KeyBindingAction.SWITCH_PANELS_BACKWARD) - this._select(backwards ? this._next() : this._previous()); + this._select(this._previous()); else if (keysym == Clutter.Left) this._select(this._previous()); else if (keysym == Clutter.Right) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 51b90fa91..888995999 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -283,11 +283,11 @@ const InputSourcePopup = new Lang.Class({ this._select(this._selectedIndex); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { if (action == this._action) - this._select(backwards ? this._previous() : this._next()); + this._select(this._next()); else if (action == this._actionBackward) - this._select(backwards ? this._next() : this._previous()); + this._select(this._previous()); else if (keysym == Clutter.Left) this._select(this._previous()); else if (keysym == Clutter.Right) diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 64df5fe54..2d4ec2ab3 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -184,13 +184,11 @@ const SwitcherPopup = new Lang.Class({ _keyPressEvent: function(actor, event) { let keysym = event.get_key_symbol(); - let event_state = event.get_state(); - let backwards = event_state & Clutter.ModifierType.SHIFT_MASK; - let action = global.display.get_keybinding_action(event.get_key_code(), event_state); + let action = global.display.get_keybinding_action(event.get_key_code(), event.get_state()); this._disableHover(); - if (this._keyPressHandler(keysym, backwards, action) != Clutter.EVENT_PROPAGATE) + if (this._keyPressHandler(keysym, action) != Clutter.EVENT_PROPAGATE) return Clutter.EVENT_STOP; if (keysym == Clutter.Escape)