export type CanvasShortcutHelpToken = | "command" | "delete" | "mouse" | "mouse-pan" | "minus" | "plus" | "trackpad-pan" | "trackpad-zoom" | string; export type CanvasShortcutHelpRow = { label: string; suffix?: string; tokens: CanvasShortcutHelpToken[]; }; export const VIDEO_CANVAS_SHORTCUT_HELP_GROUPS: Array<{ rows: CanvasShortcutHelpRow[]; title: string; }> = [ { rows: [ { label: "成组", tokens: ["command", "G"] }, { label: "合并分镜组", tokens: ["command", "⌥", "G"] }, { label: "解组", tokens: ["command", "⇧", "G"] }, { label: "连线", tokens: ["command", "L"] }, { label: "复制节点和连线", tokens: ["command", "D"] }, { label: "生成", tokens: ["command", "Enter"] }, { label: "新建节点", tokens: ["Tab"] }, { label: "节点复制", suffix: "+拖动节点", tokens: ["Option"] }, { label: "创建副本", suffix: "+拖动", tokens: ["command", "Option"], }, ], title: "创作", }, { rows: [ { label: "放大", tokens: ["command", "plus"] }, { label: "缩小", tokens: ["command", "minus"] }, { label: "适应画布", tokens: ["command", "0"] }, { label: "触控板", tokens: ["trackpad-zoom"] }, { label: "鼠标", tokens: ["command", "mouse"] }, ], title: "缩放", }, { rows: [ { label: "键盘", tokens: ["Space", "mouse"] }, { label: "触控板", tokens: ["trackpad-pan"] }, { label: "鼠标", tokens: ["mouse-pan"] }, { label: "整理画布", tokens: ["⌥", "⇧", "F"] }, ], title: "移动画布", }, { rows: [ { label: "撤销", tokens: ["command", "Z"] }, { label: "重做", tokens: ["command", "⇧", "Z"] }, { label: "删除", tokens: ["delete"] }, ], title: "其他", }, ];