diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-18 08:50:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 08:50:20 +0200 |
commit | 05fbe415bdc45cae739bfc36d538079d8ec6266a (patch) | |
tree | 1784a50c980fcdd77b615826836727a619de0f22 /editor | |
parent | fe7c6be08d0c20563c6f9fbd7e7e970a0e7fe746 (diff) | |
parent | e10ca7b824037734f01c4fb9313ea80f3b13850a (diff) |
Merge pull request #22200 from DualMatrix/not_set_focus
Fixed clicking on Find/Replace doesn't set the focus on the text field
Diffstat (limited to 'editor')
-rw-r--r-- | editor/code_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 80bc73bc12..33d36e5e9c 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()); |