mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
commit
f05a1400ac
1 changed files with 3 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue