[search] Fix activation of results from custom renderers
The previous commit broke activation when selecting an actor from a custom renderer. Fix this by explicitly defining a method activateSelected on the search renderer.
This commit is contained in:
@ -251,6 +251,14 @@ AppSearchResultDisplay.prototype = {
|
||||
targetActor._delegate.setSelected(true);
|
||||
this.selectionIndex = index;
|
||||
return true;
|
||||
},
|
||||
|
||||
activateSelected: function() {
|
||||
if (this.selectionIndex < 0)
|
||||
return;
|
||||
let children = this._container.get_children();
|
||||
let targetActor = children[this.selectionIndex];
|
||||
this.provider.activateResult(targetActor._delegate.app.get_id())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user