viewSelector: Don't mark synth event as in capture phase

When we move keyboard focus to the search entry, we replay the key press
that triggered the move to the entry using ClutterActor's event() method.
Since commit 3b293e91e we specify that the event is in the capture phase
to make it work with StIMText, but now that commit 83accce24 removed it,
we have to return to the expected non-capture flag that matches the orig-
inal event to unbreak find-as-you-type functionality.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/72
This commit is contained in:
Florian Müllner 2018-02-27 23:34:09 +01:00 committed by Florian Müllner
parent b28e48094b
commit 5e9e4f8c73

View File

@ -517,7 +517,7 @@ var ViewSelector = new Lang.Class({
let synthEvent = event.copy(); let synthEvent = event.copy();
synthEvent.set_source(this._text); synthEvent.set_source(this._text);
this._text.event(synthEvent, true); this._text.event(synthEvent, false);
}, },
// the entry does not show the hint // the entry does not show the hint