解禁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) else if (e.button === MouseKey.Right)
{ {
if (this._prompt.KeyWordList === undefined) // if (this._prompt.KeyWordList === undefined)
DynamicInputManage.GetManage().HandleInputEvent(""); // DynamicInputManage.GetManage().HandleInputEvent("");
else if (!app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft)) if (!app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft))
this.handleRightClick(this._prompt.KeyWordList); this.handleRightClick(this._prompt.KeyWordList);
return true; return true;
} }
@ -93,7 +93,7 @@ export class GetPointServices implements EditorService
} }
//处理右键点击事件 //处理右键点击事件
private async handleRightClick(keywords: KeyWord[]) private async handleRightClick(keywords: KeyWord[] = [])
{ {
let ks: KeyWord[] = [ let ks: KeyWord[] = [
{ key: "ENSURE", msg: `确认` }, { key: "ENSURE", msg: `确认` },

Loading…
Cancel
Save