Przeglądaj źródła

Merge pull request #43397 from Calinou/fix-filesystem-copy-path-shortcut-conflict

Use Ctrl+Shift+C as the default FileSystem dock Copy Path shortcut
Rémi Verschelde 4 lat temu
rodzic
commit
e1a9ec4e19
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      editor/filesystem_dock.cpp

+ 2 - 1
editor/filesystem_dock.cpp

@@ -2665,7 +2665,8 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) {
 	editor = p_editor;
 	path = "res://";
 
-	ED_SHORTCUT("filesystem_dock/copy_path", TTR("Copy Path"), KEY_MASK_CMD | KEY_C);
+	// `KEY_MASK_CMD | KEY_C` conflicts with other editor shortcuts.
+	ED_SHORTCUT("filesystem_dock/copy_path", TTR("Copy Path"), KEY_MASK_CMD | KEY_MASK_SHIFT | KEY_C);
 	ED_SHORTCUT("filesystem_dock/duplicate", TTR("Duplicate..."), KEY_MASK_CMD | KEY_D);
 	ED_SHORTCUT("filesystem_dock/delete", TTR("Delete"), KEY_DELETE);
 	ED_SHORTCUT("filesystem_dock/rename", TTR("Rename"));