解禁GetPoint 在空Keyword时无法右键呼出上下文菜单的问题

pull/351/head
ChenX 5 years ago
parent 506a1c78a4
commit 2700ff56e4

@ -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: `确认` },

Loading…
Cancel
Save