summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-05-07 17:39:55 +0200
committerkobewi <kobewi4e@gmail.com>2021-05-07 23:08:00 +0200
commitc3967c80abd2078f0996761faed256a33cf38d97 (patch)
tree14cfe44eb983b4690d0f531b330dc1ff2ef42152 /scene/gui/text_edit.cpp
parent8976594f4b90edd42a926e483815c829a540d8d2 (diff)
downloadredot-engine-c3967c80abd2078f0996761faed256a33cf38d97.tar.gz
Display arrow cursor if text is not editable
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index ded912591f..c924f89709 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -4450,7 +4450,7 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const {
return CURSOR_POINTING_HAND;
}
- if ((completion_active && completion_rect.has_point(p_pos))) {
+ if ((completion_active && completion_rect.has_point(p_pos)) || (is_readonly() && (!is_selecting_enabled() || text.size() == 0))) {
return CURSOR_ARROW;
}