shellEntry: Don't navigate forward before popping up the menu
Doing it before the grab messes up the grab helper's tracking of where the focus was before, leading to it not tracking the saved focus correctly, meaning that when we pop the menu back down with escape, it doesn't restore focus correctly. https://bugzilla.gnome.org/show_bug.cgi?id=694123
This commit is contained in:
parent
a9b12d5d73
commit
75589b4450
@ -74,12 +74,12 @@ const EntryMenu = new Lang.Class({
|
||||
if (this._passwordItem)
|
||||
this._updatePasswordItem();
|
||||
|
||||
this.parent(animate);
|
||||
this._entry.add_style_pseudo_class('focus');
|
||||
|
||||
let direction = Gtk.DirectionType.TAB_FORWARD;
|
||||
if (!this.actor.navigate_focus(null, direction, false))
|
||||
this.actor.grab_key_focus();
|
||||
|
||||
this.parent(animate);
|
||||
this._entry.add_style_pseudo_class('focus');
|
||||
},
|
||||
|
||||
close: function(animate) {
|
||||
|
Loading…
Reference in New Issue
Block a user