回归GetPoint,对Copy命令允许空选择

pull/351/head
ChenX 5 years ago
parent 2700ff56e4
commit 7958066c32

@ -17,7 +17,7 @@ export class Command_Copy implements Command
if (ssRes.Status !== PromptStatus.OK)
return;
let ptRes = await app.Editor.GetPoint({ Msg: "请选择复制基点:" });
let ptRes = await app.Editor.GetPoint({ Msg: "请选择复制基点:", AllowNone: true });
if (ptRes.Status !== PromptStatus.OK)
return;
@ -39,6 +39,7 @@ export class Command_Copy implements Command
{
app.Database.hm.StartMark();
let ptRes2 = await app.Editor.GetPoint({
AllowNone: true,
Msg: "请选择复制终点:",
Callback: (p) =>
{

@ -36,9 +36,9 @@ export class GetPointServices implements EditorService
}
else if (e.button === MouseKey.Right)
{
// if (this._prompt.KeyWordList === undefined)
// DynamicInputManage.GetManage().HandleInputEvent("");
if (!app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft))
if (this._prompt.KeyWordList === undefined)
DynamicInputManage.GetManage().HandleInputEvent("");
else if (!app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft))
this.handleRightClick(this._prompt.KeyWordList);
return true;
}

Loading…
Cancel
Save