You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Merge pull request #107303 from passivestar/close-dialog-action
Add support for closing dialog windows with Cmd+W on macOS
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
// AcceptDialog
|
||||
|
||||
void AcceptDialog::_input_from_window(const Ref<InputEvent> &p_event) {
|
||||
if (close_on_escape && p_event->is_action_pressed(SNAME("ui_cancel"), false, true)) {
|
||||
if (close_on_escape && p_event->is_action_pressed(SNAME("ui_close_dialog"), false, true)) {
|
||||
_cancel_pressed();
|
||||
}
|
||||
Window::_input_from_window(p_event);
|
||||
|
||||
Reference in New Issue
Block a user