mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
switcherPopup: Factor the initial selection into the base class
Only the application switcher needs to keep its own implementation since it has two modes of operation depending on the binding. https://bugzilla.gnome.org/show_bug.cgi?id=735976
This commit is contained in:
parent
547cdf86cc
commit
2b1077aaa1
4 changed files with 6 additions and 37 deletions
|
|
@ -146,17 +146,6 @@ const CtrlAltTabPopup = new Lang.Class({
|
|||
this._switcherList = new CtrlAltTabSwitcher(this._items);
|
||||
},
|
||||
|
||||
_initialSelection: function(backward, binding) {
|
||||
if (binding == 'switch-panels') {
|
||||
if (backward)
|
||||
this._selectedIndex = this._items.length - 1;
|
||||
} else if (binding == 'switch-panels-backward') {
|
||||
if (!backward)
|
||||
this._selectedIndex = this._items.length - 1;
|
||||
}
|
||||
this._select(this._selectedIndex);
|
||||
},
|
||||
|
||||
_keyPressHandler: function(keysym, action) {
|
||||
if (action == Meta.KeyBindingAction.SWITCH_PANELS)
|
||||
this._select(this._next());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue