From 05cd3ff8ba4b1b85f88a38022cc899c32d74ac70 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 (cherry picked from commit 75f77f751ef1a2f4a1596225d0900ca9bde1527d) --- editor/editor_node.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 729c1046c91..546443f49a5 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6249,7 +6249,11 @@ EditorNode::EditorNode() { p = settings_menu->get_popup(); p->set_hide_on_window_lose_focus(true); +#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);