searchDisplay: Remove focus management code
It turns out that this focus code broke sometime in the 3.6 cycle -- when updating results, the focus is always on the text entry, so this never gets called. We'll eventually replace it with something that keeps track of the focused result meta, but for now, remove it. https://bugzilla.gnome.org/show_bug.cgi?id=693836
This commit is contained in:
parent
9c94e9813c
commit
32a53f7412
@ -218,22 +218,13 @@ const SearchResultsBase = new Lang.Class({
|
||||
this.provider.getResultMetas(results, Lang.bind(this, function(metas) {
|
||||
this.clear();
|
||||
|
||||
// Hiding drops the key focus if we have it
|
||||
let focus = global.stage.get_key_focus();
|
||||
|
||||
// To avoid CSS transitions causing flickering when
|
||||
// the first search result stays the same, we hide the
|
||||
// content while filling in the results.
|
||||
this.actor.hide();
|
||||
|
||||
this._renderResults(metas);
|
||||
|
||||
this._setMoreIconVisible(this.hasMoreResults() && this.provider.canLaunchSearch);
|
||||
|
||||
this.actor.show();
|
||||
if (this.actor.contains(focus))
|
||||
global.stage.set_key_focus(focus);
|
||||
|
||||
callback();
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user