Переглянути джерело

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

(cherry picked from commit 75f77f751ef1a2f4a1596225d0900ca9bde1527d)
Eduardo Nunes Pereira 5 роки тому
батько
коміт
05cd3ff8ba
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      editor/editor_node.cpp

+ 4 - 0
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);