Hi,
I’m trying to trigger the find event externally, but I cant make it work properly. I looked at BpmnKeyboardBindings.js and found this:
// search labels
// CTRL + F
addListener('find', function(context) {
var event = context.keyEvent;
if (keyboard.isKey(['f', 'F'], event) && keyboard.isCmd(event)) {
editorActions.trigger('find');
return true;
}
});
I had the idea of using the editorActions in the same way, so i did this function:
ativarPesquisa(): void {
const editorActions = this._modelador.get('editorActions');
editorActions.trigger('find');
}
It works great with other actions, but it cant trigger ‘find’ specifically, and i dont know what else to try.
I’m using angular 11 and bpmn-js@8.8.2 .
Thanks in advance!