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

(cherry picked from commit 75f77f751e)
This commit is contained in:
Eduardo Nunes Pereira 2020-05-04 07:30:57 -03:00 committed by Rémi Verschelde
parent 92031098bf
commit 05cd3ff8ba
1 changed files with 4 additions and 0 deletions

View File

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