1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #102556 from kitbdev/fix-te-cursor-shape-held

Fix TextEdit cusor shape when mouse is held
This commit is contained in:
Thaddeus Crews
2025-02-12 12:56:34 -06:00
2 changed files with 13 additions and 0 deletions

View File

@@ -660,6 +660,10 @@ Control::CursorShape CodeEdit::get_cursor_shape(const Point2 &p_pos) const {
return CURSOR_POINTING_HAND;
}
if (is_dragging_cursor()) {
return TextEdit::get_cursor_shape(p_pos);
}
if ((code_completion_active && code_completion_rect.has_point(p_pos)) || (!is_editable() && (!is_selecting_enabled() || get_line_count() == 0))) {
return CURSOR_ARROW;
}