From e10ca7b824037734f01c4fb9313ea80f3b13850a Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Tue, 18 Sep 2018 00:10:23 +0200 Subject: [PATCH] Fixed clicking on Find/Replace doesn't set the focus on the text field Fixed clicking on Find/Replace doesn't set the focus on the text field --- editor/code_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 80bc73bc122..33d36e5e9c8 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -374,7 +374,7 @@ void FindReplaceBar::_hide_bar() { void FindReplaceBar::_show_search() { show(); - search_text->grab_focus(); + search_text->call_deferred("grab_focus"); if (text_edit->is_selection_active() && !selection_only->is_pressed()) { search_text->set_text(text_edit->get_selection_text());