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.
This commit is contained in:
parent
1071ac5d25
commit
a583f45cc6
@ -508,7 +508,10 @@ const ViewSelector = new Lang.Class({
|
|||||||
|
|
||||||
startSearch: function(event) {
|
startSearch: function(event) {
|
||||||
global.stage.set_key_focus(this._text);
|
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
|
// the entry does not show the hint
|
||||||
|
Loading…
Reference in New Issue
Block a user