mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Merge pull request #82914 from KoBeWi/acceptation
Accept cancel event when unfocusing LineEdit
This commit is contained in:
commit
6916349697
@ -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 New Issue
Block a user