summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-09-18 00:10:23 +0200
committerDualMatrix <piet.goris@gmail.com>2018-09-18 00:10:23 +0200
commite10ca7b824037734f01c4fb9313ea80f3b13850a (patch)
tree1d1bd33aab95d7e7f3aa2d1a9fce414d9d6fa843 /editor/code_editor.cpp
parent5614692a1a82ef0ce6fa1d268903ff38787bd728 (diff)
downloadredot-engine-e10ca7b824037734f01c4fb9313ea80f3b13850a.tar.gz
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
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp2
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());