Merge branch 'fix-on-key-press' into 'main'

searchController: Let an input method process key events

Closes #7606

See merge request GNOME/gnome-shell!3301
This commit is contained in:
Shiki Okasaka 2024-06-28 09:18:42 +00:00
commit f05a1400ac

View file

@ -269,6 +269,9 @@ export const SearchController = GObject.registerClass({
}
_onKeyPress(entry, event) {
if (this._text.has_preedit())
return Clutter.EVENT_PROPAGATE;
let symbol = event.get_key_symbol();
if (symbol === Clutter.KEY_Escape) {
if (this._isActivated()) {