mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
c3c4678635
commit
aaa846da17
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue