Clear Undo History (Ctrl + Z)

Hi ! I would like to remove the option Ctrl + Z in the Modeler version 0.11.
Someone can helpme ?


What did you try so far?

1 Like

Hello nikku .

I tried with :

 document.onkeypress = function(e) {
   if(e.ctrlKey && e.keyCode == 90) {
     return false;

I found a way to clear the history to Undo :smile:

bpmnjs.invoke(function(commandStack) {

Great to hear you found a solution. We call this clearing the undo history. I updated the thread title so that others can find your solution more easily.

Ok nikku , perfect !!!