Accept cancel event when unfocusing LineEdit
This commit is contained in:
parent
fba341ce44
commit
1fee40a189
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue