|
|
@ -4,7 +4,7 @@ import { PostJson, RequestStatus } from "../Common/Request";
|
|
|
|
import { GetIndexDBID } from "../Common/Utils";
|
|
|
|
import { GetIndexDBID } from "../Common/Utils";
|
|
|
|
import { commandMachine } from "../Editor/CommandMachine";
|
|
|
|
import { commandMachine } from "../Editor/CommandMachine";
|
|
|
|
import { IndexedDbStore, StoreName } from "../IndexedDb/IndexedDbStore";
|
|
|
|
import { IndexedDbStore, StoreName } from "../IndexedDb/IndexedDbStore";
|
|
|
|
import { CommandList, ICommand } from "../UI/Components/CommandPanel/CommandList";
|
|
|
|
import { CommandList, ICommand, SYSTEM_COMMAND_NAME_START } from "../UI/Components/CommandPanel/CommandList";
|
|
|
|
import { userConfigStore } from "../UI/Store/UserConfigStore";
|
|
|
|
import { userConfigStore } from "../UI/Store/UserConfigStore";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -128,7 +128,7 @@ export class CommandServer
|
|
|
|
this.RegistCustomCommand(cmd.customize, cmd.command);
|
|
|
|
this.RegistCustomCommand(cmd.customize, cmd.command);
|
|
|
|
|
|
|
|
|
|
|
|
//组合键
|
|
|
|
//组合键
|
|
|
|
if (cmd.systemHotkeys)//系统 一定注册
|
|
|
|
if (cmd.systemHotkeys && !cmd.command.startsWith(SYSTEM_COMMAND_NAME_START))//系统 一定注册 SYSTEMXXXXX 命令不需要注册
|
|
|
|
this.RegistHotkey(cmd.systemHotkeys, cmd.command);
|
|
|
|
this.RegistHotkey(cmd.systemHotkeys, cmd.command);
|
|
|
|
else if (cmd.hotkeysCustomize)
|
|
|
|
else if (cmd.hotkeysCustomize)
|
|
|
|
this.RegistHotkey(cmd.hotkeysCustomize, cmd.command);
|
|
|
|
this.RegistHotkey(cmd.hotkeysCustomize, cmd.command);
|
|
|
|