Using command + comma on macOS as default shortcut for editor settings

This commit is contained in:
Eduardo Nunes Pereira 2020-05-04 07:30:57 -03:00 committed by Rémi Verschelde
parent 39da96e4d6
commit 75f77f751e

View File

@ -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);