mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Make RichTextLabel honour default cursor shape property
This commit is contained in:
parent
6609ce1944
commit
d12cceadd2
@ -1451,7 +1451,7 @@ void RichTextLabel::_notification(int p_what) {
|
||||
|
||||
Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const {
|
||||
if (!underline_meta) {
|
||||
return CURSOR_ARROW;
|
||||
return get_default_cursor_shape();
|
||||
}
|
||||
|
||||
if (selection.click_item) {
|
||||
@ -1459,11 +1459,11 @@ Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const
|
||||
}
|
||||
|
||||
if (main->first_invalid_line < main->lines.size()) {
|
||||
return CURSOR_ARROW; //invalid
|
||||
return get_default_cursor_shape(); //invalid
|
||||
}
|
||||
|
||||
if (main->first_resized_line < main->lines.size()) {
|
||||
return CURSOR_ARROW; //invalid
|
||||
return get_default_cursor_shape(); //invalid
|
||||
}
|
||||
|
||||
Item *item = nullptr;
|
||||
@ -1474,7 +1474,7 @@ Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const
|
||||
return CURSOR_POINTING_HAND;
|
||||
}
|
||||
|
||||
return CURSOR_ARROW;
|
||||
return get_default_cursor_shape();
|
||||
}
|
||||
|
||||
void RichTextLabel::gui_input(const Ref<InputEvent> &p_event) {
|
||||
|
Loading…
Reference in New Issue
Block a user