mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #79293 from ItsNL/add-accept-dialog-close-on-unfocused
Check `FLAG_POPUP` to close an AcceptDialog when parent is focused
This commit is contained in:
@@ -45,7 +45,7 @@ void AcceptDialog::_input_from_window(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
|
||||
void AcceptDialog::_parent_focused() {
|
||||
if (close_on_escape && !is_exclusive()) {
|
||||
if (!is_exclusive() && get_flag(FLAG_POPUP)) {
|
||||
_cancel_pressed();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user