From 2fd37d41bb804a06acc8e2d341d5ce5d8370184b Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 11 Feb 2022 17:46:20 +0800 Subject: ... --- src/ui/controls/TextHostControlService.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/controls/TextHostControlService.cpp') 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* -- cgit v1.2.3