Remove some shortcut keys

Hello, I need to remove some shortcut keys, such as CTRL+ O. How can I do this?
My Modeler code looks like this:

this.controllerBPMN = new Modeler({
      container: '#bpmn-canvas',
      width: '100%',
      height: '500px',
      keyboard: { bindTo: document },
      additionalModules: [CustomModules],

Hi, if the shortcuts are bound in bpmn-js, you could add a keyboard listener, and return false with high priority to suppress event:

function CustomKeyboardHandler(keyboard) {
  keyboard.addListener(/* high priority */ 8001, event => {

    // implement `shouldBeSuppressed` in your application
    if (shouldBeSuppressed(event)) {
      return false;

CustomKeyboardHandler.$inject = [ 'keyboard' ];

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.