Merge pull request #119199 from Manik2607/fix-lineedit-selection-reset
GUI: Fix non-editable LineEdit selection reset on focus loss
This commit is contained in:
@@ -1686,6 +1686,8 @@ void LineEdit::_notification(int p_what) {
|
||||
if (editing) {
|
||||
unedit();
|
||||
emit_signal(SNAME("editing_toggled"), false);
|
||||
} else if (deselect_on_focus_loss_enabled && !selection.drag_attempt) {
|
||||
deselect();
|
||||
}
|
||||
} break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user