Merge pull request #106565 from roughbits01/line-edit-secret-drag
Fix LineEdit with secret checked reveals the secret when a selection is dragged
This commit is contained in:
commit
3cfe5f9ea8
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue