开发:优化

pull/1496/head
ChenX 3 years ago
parent 321324bf2e
commit 6fd6bfa34a

@ -207,16 +207,19 @@ export class ApplicationService
{ {
if (e.code === KeyCode.KeyF) if (e.code === KeyCode.KeyF)
{ {
if (CommandState.CommandIng) return;
commandMachine.ExecCommand(CommandNames.ZoomObject); commandMachine.ExecCommand(CommandNames.ZoomObject);
e.preventDefault(); e.preventDefault();
} }
else if (e.code === KeyCode.KeyD) else if (e.code === KeyCode.KeyD)
{ {
if (CommandState.CommandIng) return;
commandMachine.ExecCommand(CommandNames.EditDrilEdgeData); commandMachine.ExecCommand(CommandNames.EditDrilEdgeData);
e.preventDefault(); e.preventDefault();
} }
else if (e.code === KeyCode.KeyS) else if (e.code === KeyCode.KeyS)
{ {
if (CommandState.CommandIng) return;
commandMachine.ExecCommand(CommandNames.EditSealEdgeData); commandMachine.ExecCommand(CommandNames.EditSealEdgeData);
e.preventDefault(); e.preventDefault();
} }

Loading…
Cancel
Save