diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index 3c16e5656..c2185d9ed 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -395,10 +395,17 @@ const SearchResults = new Lang.Class({ function(metas) { this._clearDisplayForProvider(provider); meta.actor.show(); + + // Hinding drops the key focus if we have it + let focus = global.stage.get_key_focus(); this._content.hide(); + meta.resultDisplay.renderResults(metas); this._maybeSetInitialSelection(); + this._content.show(); + if (this._content.contains(focus)) + global.stage.set_key_focus(focus); })); } else { let metas = provider.getResultMetas(results);