aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/TextControlService.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-10 14:42:36 +0800
committercrupest <crupest@outlook.com>2020-11-10 14:42:36 +0800
commit141fbebbe604eac53d12e7de11f999044e286cb6 (patch)
tree96163982b67d4bef1e4c40ac528bc62d43a26b0f /src/ui/controls/TextControlService.hpp
parentc5fe6fc72e9bca222e6d7b94fd47523089083fdd (diff)
downloadcru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.gz
cru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.bz2
cru-141fbebbe604eac53d12e7de11f999044e286cb6.zip
...
Diffstat (limited to 'src/ui/controls/TextControlService.hpp')
-rw-r--r--src/ui/controls/TextControlService.hpp5
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);
}
}