Fix LineEdit with secret checked reveals the secret when a selection is dragged

This commit is contained in:
Marwen Azouzi 2025-05-18 18:26:34 +02:00
parent 34f005d810
commit 296bee6bce
No known key found for this signature in database

View file

@ -522,7 +522,7 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) {
selection.drag_attempt = false;
if (!selection.double_click) {
bool is_inside_sel = selection.enabled && caret_column >= selection.begin && caret_column <= selection.end;
if (drag_and_drop_selection_enabled && is_inside_sel) {
if (!pass && drag_and_drop_selection_enabled && is_inside_sel) {
selection.drag_attempt = true;
} else {
deselect();