Skip to content

Commit

Permalink
Accept cancel event when unfocusing LineEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Oct 6, 2023
1 parent fba341c commit 1fee40a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/line_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1fee40a

Please sign in to comment.