diff options
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/TextControlService.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/controls/TextControlService.hpp b/src/ui/controls/TextControlService.hpp index 376f9177..fe33f459 100644 --- a/src/ui/controls/TextControlService.hpp +++ b/src/ui/controls/TextControlService.hpp @@ -411,7 +411,10 @@ class TextControlService : public Object { input_method_context_ = GetUiApplication()->GetInputMethodManager()->GetContext(window); input_method_context_->EnableIME(); - auto sync = [this](std::nullptr_t) { this->SyncTextRenderObject(); }; + auto sync = [this](std::nullptr_t) { + this->SyncTextRenderObject(); + ScrollToCaret(); + }; input_method_context_->CompositionStartEvent()->AddHandler( [this](std::nullptr_t) { this->DeleteSelectedText(); }); input_method_context_->CompositionEvent()->AddHandler(sync); |