mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Display arrow cursor if text is not editable
(cherry picked from commit c3967c80ab
)
This commit is contained in:
parent
0454848f4d
commit
cb5870dd4a
2 changed files with 4 additions and 3 deletions
|
@ -648,7 +648,7 @@ void LineEdit::drop_data(const Point2 &p_point, const Variant &p_data) {
|
|||
}
|
||||
|
||||
Control::CursorShape LineEdit::get_cursor_shape(const Point2 &p_pos) const {
|
||||
if (!text.empty() && is_editable() && _is_over_clear_button(p_pos)) {
|
||||
if ((!text.empty() && is_editable() && _is_over_clear_button(p_pos)) || (!is_editable() && (!is_selecting_enabled() || text.empty()))) {
|
||||
return CURSOR_ARROW;
|
||||
}
|
||||
return Control::get_cursor_shape(p_pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue