From db4daa5249416c78dd0b256c24c14399cae265b5 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 8 Sep 2023 14:38:44 +0200 Subject: [PATCH] Fix FindReplaceBar losing focus too early --- scene/gui/line_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index f74d6df1584a..c8ad0b0e79b3 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -483,7 +483,7 @@ void LineEdit::gui_input(const Ref &p_event) { } if (k->is_action("ui_cancel")) { - release_focus(); + callable_mp((Control *)this, &Control::release_focus).call_deferred(); return; }