修复:快捷键错误

pull/2255/MERGE
ChenX 1 year ago
parent 5c7d40a26c
commit 532dbd55d2

@ -124,9 +124,9 @@ export class CommandServer
this._CustomCommandMap.clear(); this._CustomCommandMap.clear();
this._CommandHotKeyMap.clear(); this._CommandHotKeyMap.clear();
//注册自定义(命令和组合键)
for (let cmd of commandList) for (let cmd of commandList)
{ {
//注册自定义(命令和组合键){
if (cmd.customize) if (cmd.customize)
this.RegistCustomCommand(cmd.customize, cmd.command); this.RegistCustomCommand(cmd.customize, cmd.command);
@ -135,8 +135,11 @@ export class CommandServer
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);
}
//注册默认(命令和组合键)(如果可以的话){ //注册默认(命令和组合键)(如果可以的话)
for (let cmd of commandList)
{
//默认自定义命令 //默认自定义命令
if (!cmd.customize && this.GetCommandCanUseDefaultCustomCmd(cmd)) if (!cmd.customize && this.GetCommandCanUseDefaultCustomCmd(cmd))
this.RegistCustomCommand(cmd.defaultCustom, cmd.command);//注册默认自定义命令 this.RegistCustomCommand(cmd.defaultCustom, cmd.command);//注册默认自定义命令

Loading…
Cancel
Save