diff options
author | crupest <crupest@outlook.com> | 2020-11-10 14:42:36 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-10 14:42:36 +0800 |
commit | 141fbebbe604eac53d12e7de11f999044e286cb6 (patch) | |
tree | 96163982b67d4bef1e4c40ac528bc62d43a26b0f /src/ui/controls | |
parent | c5fe6fc72e9bca222e6d7b94fd47523089083fdd (diff) | |
download | cru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.gz cru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.bz2 cru-141fbebbe604eac53d12e7de11f999044e286cb6.zip |
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/TextControlService.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/controls/TextControlService.hpp b/src/ui/controls/TextControlService.hpp index 8ad95dec..92a66f5e 100644 --- a/src/ui/controls/TextControlService.hpp +++ b/src/ui/controls/TextControlService.hpp @@ -4,6 +4,7 @@ #include "cru/common/StringUtil.hpp" #include "cru/platform/graphics/Font.hpp" #include "cru/platform/graphics/Painter.hpp" +#include "cru/platform/gui/Cursor.hpp" #include "cru/platform/gui/InputMethod.hpp" #include "cru/platform/gui/UiApplication.hpp" #include "cru/platform/gui/Window.hpp" @@ -50,10 +51,14 @@ class TextControlService : public Object { if (this->caret_visible_) { this->SetupCaret(); } + this->control_->SetCursor( + GetUiApplication()->GetCursorManager()->GetSystemCursor( + platform::gui::SystemCursorType::IBeam)); } else { this->AbortSelection(); this->TearDownHandlers(); this->TearDownCaret(); + this->control_->SetCursor(nullptr); } } |