From a583f45cc64391fe4c7562047020c8d445010e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 9 Jul 2014 12:06:40 +0200 Subject: [PATCH] viewSelector: Synthesize a new event with correct source for search We currently replay events that should start a search to the search entry, which is fairly dodgy. Synthesize a new event with the correct source actor instead, which is a bit less evil. --- js/ui/viewSelector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 918cd873a..b743fa796 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -508,7 +508,10 @@ const ViewSelector = new Lang.Class({ startSearch: function(event) { global.stage.set_key_focus(this._text); - this._text.event(event, true); + + let synthEvent = event.copy(); + synthEvent.set_source(this._text); + this._text.event(synthEvent, true); }, // the entry does not show the hint