From b48039d332727ad5664fea4c9a5014951da9230d Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 16 Apr 2020 14:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E9=81=BF=E5=85=8D=E5=9C=A8?= =?UTF-8?q?=E9=94=81=E5=AE=9A=E6=9F=A5=E7=9C=8B=E6=A8=A1=E5=BC=8F=E4=B8=AD?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/CommandMachine.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Editor/CommandMachine.ts b/src/Editor/CommandMachine.ts index be9cfa89e..f3a43c199 100644 --- a/src/Editor/CommandMachine.ts +++ b/src/Editor/CommandMachine.ts @@ -25,11 +25,12 @@ class CommandMachine private m_CommandNameList = new Set(); async ExecCommand(cmdName: string) { + if (CommandState.CommandIng) + return; + if (app.Viewer.IsLookSelect) + return; if (this.CommandMap.has(cmdName)) { - if (CommandState.CommandIng) - return; - arrayRemoveOnce(app.Editor.CommandStore.historyCmdList, cmdName); app.Editor.CommandStore.historyCmdList.push(cmdName);