Browse Source

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

(cherry picked from commit 75f77f751ef1a2f4a1596225d0900ca9bde1527d)
Eduardo Nunes Pereira 5 năm trước cách đây
mục cha
commit
05cd3ff8ba
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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);