You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Display arrow cursor if text is not editable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user