Make key-above-tab in switcher more consistent
Ensure that key-above-tab for selecting window application is consistent with the down key. After focus an application in the switcher: - if you press down, the window thumbnails are previewed, and first element is selected - if you press key-above-tab, the window thumbnails are previewed, however the second element is directly selected. Make both interactions always select the first element. https://bugzilla.gnome.org/show_bug.cgi?id=786009
This commit is contained in:
parent
80151a7d64
commit
9f0bb526f7
@ -158,7 +158,10 @@ var AppSwitcherPopup = new Lang.Class({
|
|||||||
|
|
||||||
_keyPressHandler: function(keysym, action) {
|
_keyPressHandler: function(keysym, action) {
|
||||||
if (action == Meta.KeyBindingAction.SWITCH_GROUP) {
|
if (action == Meta.KeyBindingAction.SWITCH_GROUP) {
|
||||||
this._select(this._selectedIndex, this._nextWindow());
|
if (!this._thumbnailsFocused)
|
||||||
|
this._select(this._selectedIndex, 0);
|
||||||
|
else
|
||||||
|
this._select(this._selectedIndex, this._nextWindow());
|
||||||
} else if (action == Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD) {
|
} else if (action == Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD) {
|
||||||
this._select(this._selectedIndex, this._previousWindow());
|
this._select(this._selectedIndex, this._previousWindow());
|
||||||
} else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS) {
|
} else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user