From ea3c303b7eb21be72ff92055353c652b142eee1e Mon Sep 17 00:00:00 2001 From: Cass <60286224+Cass-dev-web@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:18:57 +0000 Subject: [PATCH] Modify shortcut override for closing scene on macOS --- editor/editor_node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 2cee2c2198b..f05f818f87e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6693,6 +6693,7 @@ EditorNode::EditorNode() { file_menu->add_separator(); file_menu->add_shortcut(ED_SHORTCUT_AND_COMMAND("editor/reload_saved_scene", TTR("Reload Saved Scene")), EDIT_RELOAD_SAVED_SCENE); file_menu->add_shortcut(ED_SHORTCUT_AND_COMMAND("editor/close_scene", TTR("Close Scene"), KeyModifierMask::CMD_OR_CTRL + KeyModifierMask::SHIFT + Key::W), FILE_CLOSE); + ED_SHORTCUT_OVERRIDE("editor/close_scene", "macos", KeyModifierMask::CMD_OR_CTRL + Key::W); if (!global_menu || !OS::get_singleton()->has_feature("macos")) { // On macOS "Quit" and "About" options are in the "app" menu.