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

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

Loading…
Cancel
Save