Pārlūkot izejas kodu

Merge pull request #22200 from DualMatrix/not_set_focus

Fixed clicking on Find/Replace doesn't set the focus on the text field
Rémi Verschelde 7 gadi atpakaļ
vecāks
revīzija
05fbe415bd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      editor/code_editor.cpp

+ 1 - 1
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());