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
commit 5f7ea8328b
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
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;
}