summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-30 15:05:54 +0200
committerGitHub <noreply@github.com>2019-08-30 15:05:54 +0200
commit58e7cbccc093e735dce79b5fd194a55f9a0f376d (patch)
tree5a05d33d1c668b38ef33946e7ac45433db6c8e9a
parent495a0a97a296f8c9921e90846590fa55f595b701 (diff)
parentb1dbd114c4535e3ac04469335c371d091244f9a3 (diff)
Merge pull request #30927 from mahubu/console-multi-selection-cursor
Change cursor to multi-selection cursor when selecting text in RichTextLabel
-rw-r--r--scene/gui/rich_text_label.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 8223ea6d1e..1aed858c94 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -916,9 +916,12 @@ void RichTextLabel::_find_click(ItemFrame *p_frame, const Point2i &p_click, Item
Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const {
- if (!underline_meta || selection.click)
+ if (!underline_meta)
return CURSOR_ARROW;
+ if (selection.click)
+ return CURSOR_IBEAM;
+
if (main->first_invalid_line < main->lines.size())
return CURSOR_ARROW; //invalid