Jelajahi Sumber

Fix FindReplaceBar losing focus too early

kobewi 2 tahun lalu
induk
melakukan
db4daa5249
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      scene/gui/line_edit.cpp

+ 1 - 1
scene/gui/line_edit.cpp

@@ -483,7 +483,7 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) {
 		}
 
 		if (k->is_action("ui_cancel")) {
-			release_focus();
+			callable_mp((Control *)this, &Control::release_focus).call_deferred();
 			return;
 		}