text-input: reset text-input state after disconnect
This commit is contained in:
parent
881fb24878
commit
8372f83737
1 changed files with 5 additions and 0 deletions
|
|
@ -110,5 +110,10 @@ impl TextInputConnection {
|
||||||
popup.update_visible();
|
popup.update_visible();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if reason != TextDisconnectReason::TextInputDisabled {
|
||||||
|
self.text_input.send_preedit_string(None, 0, 0);
|
||||||
|
self.text_input.send_commit_string(None);
|
||||||
|
self.text_input.send_done();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue