From 1fee40a1897aaff77be3df8ec13d97981e8d8ba8 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 6 Oct 2023 16:00:56 +0200 Subject: [PATCH] Accept cancel event when unfocusing LineEdit --- scene/gui/line_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index ec6d5f01f12b..9de86d18778a 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -486,6 +486,7 @@ void LineEdit::gui_input(const Ref &p_event) { if (k->is_action("ui_cancel")) { callable_mp((Control *)this, &Control::release_focus).call_deferred(); + accept_event(); return; }