Merge pull request #82914 from KoBeWi/acceptation

Accept cancel event when unfocusing LineEdit
This commit is contained in:
Rémi Verschelde 2023-10-06 16:51:04 +02:00
commit 6916349697
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

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