Closed Djeffl closed 2 years ago
如何监听F8按钮事件~
ngx-monaco-editor 监听键盘按钮 Monitor keyboard
<ngx-monaco-editor (init)="onEditorInit($event)" ></ngx-monaco-editor>
onEditorInit(editor) {
editor.addCommand(monaco.KeyCode.F8, () => {
//回调事件
})
}
How do can I trigger an event in my component like the find (ctlr+f) event?