You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix that button presses don't set event as handled in AcceptDialog
This commit is contained in:
@@ -125,6 +125,7 @@ void AcceptDialog::_ok_pressed() {
|
|||||||
}
|
}
|
||||||
ok_pressed();
|
ok_pressed();
|
||||||
emit_signal(SNAME("confirmed"));
|
emit_signal(SNAME("confirmed"));
|
||||||
|
set_input_as_handled();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AcceptDialog::_cancel_pressed() {
|
void AcceptDialog::_cancel_pressed() {
|
||||||
@@ -143,6 +144,7 @@ void AcceptDialog::_cancel_pressed() {
|
|||||||
if (parent_window) {
|
if (parent_window) {
|
||||||
//parent_window->grab_focus();
|
//parent_window->grab_focus();
|
||||||
}
|
}
|
||||||
|
set_input_as_handled();
|
||||||
}
|
}
|
||||||
|
|
||||||
String AcceptDialog::get_text() const {
|
String AcceptDialog::get_text() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user