From dc434ef84915efd44de2f7cb76e54c18a070d470 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Fri, 2 Jun 2023 11:06:41 +0200 Subject: [PATCH] Fix that button presses don't set event as handled in AcceptDialog --- scene/gui/dialogs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index 40be9fbe3cd..0860bf39682 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -125,6 +125,7 @@ void AcceptDialog::_ok_pressed() { } ok_pressed(); emit_signal(SNAME("confirmed")); + set_input_as_handled(); } void AcceptDialog::_cancel_pressed() { @@ -143,6 +144,7 @@ void AcceptDialog::_cancel_pressed() { if (parent_window) { //parent_window->grab_focus(); } + set_input_as_handled(); } String AcceptDialog::get_text() const {