Skip to content

Commit

Permalink
Merge pull request #77765 from Sauermann/fix-acceptdialog-event-handled
Browse files Browse the repository at this point in the history
Fix that button presses don't set event as handled in AcceptDialog
  • Loading branch information
akien-mga authored Jun 5, 2023
2 parents 3e633c9 + dc434ef commit e7d2e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ void AcceptDialog::_ok_pressed() {
}
ok_pressed();
emit_signal(SNAME("confirmed"));
set_input_as_handled();
}

void AcceptDialog::_cancel_pressed() {
Expand All @@ -143,6 +144,7 @@ void AcceptDialog::_cancel_pressed() {
if (parent_window) {
//parent_window->grab_focus();
}
set_input_as_handled();
}

String AcceptDialog::get_text() const {
Expand Down

0 comments on commit e7d2e49

Please sign in to comment.