当用户按下按键时,对关键字界面进行显示更新.

pull/149/MERGE
ChenX 6 years ago
parent 6d807632b5
commit 5ebf238282

@ -56,6 +56,20 @@ export class GetKeyWordsServices implements EditorService
<KeyWordContextMenu />
</Provider>
, container);
end(ed.m_KeyCtrl, ed.m_KeyCtrl.OnKeyDown, (e: KeyboardEvent) =>
{
if (this.IsReady)
{
let key = e.key.toUpperCase();
let index = this.keywordList.findIndex((v) =>
{
return v.key === key;
});
if (index !== -1)
this.selctIndex = index;
}
});
}
async Doit(e: MouseEvent)

Loading…
Cancel
Save