diff options
author | Teto <mqrco7@yahoo.fr> | 2019-07-26 15:24:02 +0200 |
---|---|---|
committer | MB <mqrco7@yahoo.fr> | 2019-07-29 16:22:54 +0200 |
commit | b1dbd114c4535e3ac04469335c371d091244f9a3 (patch) | |
tree | 4fea051f7d7441d57ccf611f25226edc037a0c7f | |
parent | 639127de0967bf32b20dac9a54c4bba44d2786ad (diff) |
Change cursor to multi-selection cursor when selecting text in RichTextLabel.
Fix for #27545 : returns 'CURSOR_IBEAM' shape when selection is clicked.
-rw-r--r-- | scene/gui/rich_text_label.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index d6c0981ebc..6c234512dc 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -920,9 +920,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 |