优化:避免上次选择关键字影响右键决策

pull/1498/MERGE
ChenX 3 years ago
parent 1c0d9c304a
commit a56fc6b455

@ -200,7 +200,8 @@ export class GetEntityServices implements EditorService
} }
case MouseKey.Right: case MouseKey.Right:
{ {
if (!this.prompt.KeyWordList || this.prompt.KeyWordList.length === 0) if (!this.prompt.KeyWordList || this.prompt.KeyWordList.length === 0
|| (this.prompt.KeyWordList.length === 1 && this.prompt.KeyWordList[0].key === "P"))//上次选择P避免影响右键确认效果
this.Retun({ Status: PromptStatus.Other }); this.Retun({ Status: PromptStatus.Other });
else else
this.handleRightClick(this.prompt.KeyWordList); this.handleRightClick(this.prompt.KeyWordList);

Loading…
Cancel
Save