Skip to content

Commit

Permalink
Merge pull request godotengine#82914 from KoBeWi/acceptation
Browse files Browse the repository at this point in the history
Accept cancel event when unfocusing LineEdit
  • Loading branch information
akien-mga committed Oct 6, 2023
2 parents 62ca46c + 1fee40a commit 6916349
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 6916349

Please sign in to comment.