mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
inputMethod: Do not reset invisible preedit on focus_out
If the preedit is in invisible state, the last preedit string that was sent around is already null, so there is no need to clear the preedit in that case. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2011>
This commit is contained in:
parent
047691b0d3
commit
0177560952
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ class InputMethod extends Clutter.InputMethod {
|
|||
if (this._context)
|
||||
this._context.focus_out();
|
||||
|
||||
if (this._preeditStr) {
|
||||
if (this._preeditStr && this._preeditVisible) {
|
||||
// Unset any preedit text
|
||||
this.set_preedit_text(null, 0, this._preeditCommitMode);
|
||||
this._preeditStr = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue