diff --git a/src/Editor/GetPointServices.ts b/src/Editor/GetPointServices.ts index cf2a59ffb..f9c60bd42 100644 --- a/src/Editor/GetPointServices.ts +++ b/src/Editor/GetPointServices.ts @@ -36,9 +36,9 @@ export class GetPointServices implements EditorService } else if (e.button === MouseKey.Right) { - if (this._prompt.KeyWordList === undefined) - DynamicInputManage.GetManage().HandleInputEvent(""); - else if (!app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft)) + // if (this._prompt.KeyWordList === undefined) + // DynamicInputManage.GetManage().HandleInputEvent(""); + if (!app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft)) this.handleRightClick(this._prompt.KeyWordList); return true; } @@ -93,7 +93,7 @@ export class GetPointServices implements EditorService } //处理右键点击事件 - private async handleRightClick(keywords: KeyWord[]) + private async handleRightClick(keywords: KeyWord[] = []) { let ks: KeyWord[] = [ { key: "ENSURE", msg: `确认` },