Bug 571313 - Refocus search field every time overlay is shown
Before the run dialog was changing the focus, but because we were only setting it once, we ended up with nothing focused after the run dialog was destroyed.
This commit is contained in:
@ -112,7 +112,6 @@ Sideshow.prototype = {
|
||||
height: searchIconTexture.height,
|
||||
text: ""});
|
||||
this.actor.add_actor(this._searchEntry);
|
||||
global.stage.set_key_focus(this._searchEntry);
|
||||
this._searchQueued = false;
|
||||
this._searchActive = false;
|
||||
this._searchEntry.connect('notify::text', function (se, prop) {
|
||||
@ -261,6 +260,8 @@ Sideshow.prototype = {
|
||||
},
|
||||
|
||||
show: function() {
|
||||
let global = Shell.Global.get();
|
||||
|
||||
this._appDisplay.show();
|
||||
this._docDisplay.show();
|
||||
this._appDisplay.selectFirstItem();
|
||||
@ -268,6 +269,7 @@ Sideshow.prototype = {
|
||||
this._docDisplay.selectFirstItem();
|
||||
else
|
||||
this._docDisplay.unsetSelected();
|
||||
global.stage.set_key_focus(this._searchEntry);
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
|
Reference in New Issue
Block a user