diff options
author | crupest <crupest@outlook.com> | 2022-02-11 17:46:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-11 17:46:20 +0800 |
commit | 2fd37d41bb804a06acc8e2d341d5ce5d8370184b (patch) | |
tree | 4a87909043189928c38ee325377ee600d5321b19 /src/ui/controls/TextHostControlService.cpp | |
parent | 85746e9f053432bdcfb99b21997efa040eac1bc3 (diff) | |
download | cru-2fd37d41bb804a06acc8e2d341d5ce5d8370184b.tar.gz cru-2fd37d41bb804a06acc8e2d341d5ce5d8370184b.tar.bz2 cru-2fd37d41bb804a06acc8e2d341d5ce5d8370184b.zip |
...
Diffstat (limited to 'src/ui/controls/TextHostControlService.cpp')
-rw-r--r-- | src/ui/controls/TextHostControlService.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/controls/TextHostControlService.cpp b/src/ui/controls/TextHostControlService.cpp index c537a86e..81365a8b 100644 --- a/src/ui/controls/TextHostControlService.cpp +++ b/src/ui/controls/TextHostControlService.cpp @@ -220,6 +220,7 @@ void TextHostControlService::SetText(String text, bool stop_composition) { CancelComposition(); } SyncTextRenderObject(); + text_change_event_.Raise(nullptr); } void TextHostControlService::InsertText(gsl::index position, StringView text, @@ -233,6 +234,7 @@ void TextHostControlService::InsertText(gsl::index position, StringView text, CancelComposition(); } SyncTextRenderObject(); + text_change_event_.Raise(nullptr); } void TextHostControlService::DeleteChar(gsl::index position, @@ -281,6 +283,7 @@ void TextHostControlService::DeleteText(TextRange range, CancelComposition(); } this->SyncTextRenderObject(); + text_change_event_.Raise(nullptr); } platform::gui::IInputMethodContext* |