mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
inputMethod: Equate empty preedit string to null
If we get '' from the IM as the preedit string, it is pretty safe to handle it as "no preedit" altogether. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2011>
This commit is contained in:
parent
b93342f72e
commit
286cfdc6d4
1 changed files with 2 additions and 0 deletions
|
|
@ -111,6 +111,8 @@ class InputMethod extends Clutter.InputMethod {
|
|||
return;
|
||||
|
||||
let preedit = text.get_text();
|
||||
if (preedit === '')
|
||||
preedit = null;
|
||||
|
||||
if (visible)
|
||||
this.set_preedit_text(preedit, pos, mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue