From 75f77f751ef1a2f4a1596225d0900ca9bde1527d Mon Sep 17 00:00:00 2001 From: Eduardo Nunes Pereira Date: Mon, 4 May 2020 07:30:57 -0300 Subject: [PATCH] Using command + comma on macOS as default shortcut for editor settings --- editor/editor_node.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index c37ede41661..e85660bb881 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6236,8 +6236,11 @@ EditorNode::EditorNode() { left_menu_hb->add_child(settings_menu); p = settings_menu->get_popup(); - +#ifdef OSX_ENABLED + p->add_shortcut(ED_SHORTCUT("editor/editor_settings", TTR("Editor Settings..."), KEY_MASK_CMD + KEY_COMMA), SETTINGS_PREFERENCES); +#else p->add_shortcut(ED_SHORTCUT("editor/editor_settings", TTR("Editor Settings...")), SETTINGS_PREFERENCES); +#endif p->add_separator(); editor_layouts = memnew(PopupMenu);