1
0
Fork 0

Fix LineEdit forcing caret to show after aborted selection drag

This commit is contained in:
Marwen Azouzi 2025-06-02 17:37:23 +02:00
parent 1b37dacc18
commit 3e1e686d31
No known key found for this signature in database
1 changed files with 8 additions and 0 deletions

View File

@ -1636,6 +1636,14 @@ void LineEdit::_notification(int p_what) {
}
drag_action = false;
drag_caret_force_displayed = false;
queue_redraw();
} break;
case NOTIFICATION_MOUSE_EXIT: {
if (drag_caret_force_displayed) {
drag_caret_force_displayed = false;
queue_redraw();
}
} break;
}
}