How to remove hotkey 'e'


#1

Hello,
i’m trying to remove directEditing from my diagram, i already did with auto.place to cancel the direct edting and with double click

with

var edicaoDireta = bpmnModeler.get(‘directEditing’);
edicaoDireta.cancel();

for remove when auto place a shape
and retuning false in double click for tasks

but i just realized that theres a hotkey to edit an element, and i want to cancel this directEditing when they are tasks I already tried to use KeyBoard.Keydown but this dont trigger when is ‘e’ key.
Thank you.


#2

Hi @gabriellpa,
to remove keybindings, you can have a look inside another forum topic regarding another keybinding. You will have a look inside the keybinding initialization to remove the listener. Feel free to ask if you need some help regarding this!