2
0
Эх сурвалжийг харах

Merge pull request #81450 from KoBeWi/call_deferred()_is_too_powerful._It's_frightening

Fix FindReplaceBar losing focus too early
Rémi Verschelde 2 жил өмнө
parent
commit
867e20e7b9

+ 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")) {
 		if (k->is_action("ui_cancel")) {
-			release_focus();
+			callable_mp((Control *)this, &Control::release_focus).call_deferred();
 			return;
 			return;
 		}
 		}