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; }