diff --git a/src/Common/CommandNames.ts b/src/Common/CommandNames.ts index 2471f2485..7ba307a25 100644 --- a/src/Common/CommandNames.ts +++ b/src/Common/CommandNames.ts @@ -206,5 +206,6 @@ export enum CommandNames KeFanZuan = "KEFANZUAN", ShowHSPanel = "SHOWHIDESELECT", ParseBoardName = "PARSEBOARDNAME", - SetBRXAxis = "SetBRXAxis" + SetBRXAxis = "SetBRXAxis", + ResetCustomCommand = "ResetCustomCommand",//重置快捷键列表 } diff --git a/src/Editor/CommandRegister.ts b/src/Editor/CommandRegister.ts index aae8d9b9b..8005163af 100644 --- a/src/Editor/CommandRegister.ts +++ b/src/Editor/CommandRegister.ts @@ -586,7 +586,7 @@ export function registerCommand() //迁移自定义命令数据 commandMachine.RegisterCommand("upgradedata", new UpgradeData()); - commandMachine.RegisterCommand("ResetCustomCommand", new Command_ResetCustomCommand()); + commandMachine.RegisterCommand(CommandNames.ResetCustomCommand, new Command_ResetCustomCommand()); commandMachine.RegisterCommand(CommandNames.Dist, new Command_Dist()); diff --git a/src/UI/Components/CommandPanel/CommandList.ts b/src/UI/Components/CommandPanel/CommandList.ts index 3695c0528..a1d6bf12b 100644 --- a/src/UI/Components/CommandPanel/CommandList.ts +++ b/src/UI/Components/CommandPanel/CommandList.ts @@ -1586,6 +1586,15 @@ export const CommandList: ICommand[] = [ chName: "显示隐藏功能", chDes: "显示隐藏功能", }, + { + typeId: "util", + link: "#", + defaultCustom: CommandNames.ResetCustomCommand, + command: CommandNames.ResetCustomCommand, + type: "工具", + chName: "重置快捷键", + chDes: "重置快捷键", + }, //#endregion //#region 文件命令