mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
commit
38e20331c8
4 changed files with 19 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue