From 36afe803a9bdf765fc4faa8ed940c765de04a83e Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 19 Jun 2022 10:40:33 +0800 Subject: [PATCH] Fix EditorFileDialog filename default selection --- editor/editor_file_dialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp index eeece8c59..886351902 100644 --- a/editor/editor_file_dialog.cpp +++ b/editor/editor_file_dialog.cpp @@ -1713,6 +1713,7 @@ EditorFileDialog::EditorFileDialog() { file = memnew(LineEdit); file->set_stretch_ratio(4); file->set_h_size_flags(SIZE_EXPAND_FILL); + file->set_deselect_on_focus_loss_enabled(false); file_box->add_child(file); filter = memnew(OptionButton); filter->set_stretch_ratio(3);