Disable CTRL-F search function


#1

We would like to disable the search (CTRL-F) function on the modeler and viewer. Because once used it will stay active, even we press CTRL-F somewhere else in our application and would expect that the internal search function from browser will be shown.


#2

I can not reproduce this behavior. Can you describe how to reproduce it in more detail?


#3
  1. I startet your online Demo (https://demo.bpmn.io/new)
  2. CTRL-F and entering Test
  3. Set display:none, because in our application an user can change the tab for example, so the bpmn diagram is display none. Image2
  4. From now on the browser ctrl-f does not work anymore.
  5. Im using newest Chrome.

Is it possible to disable ctrl-f in the diagram completely, that only the browser search does work?


#4

You can disable modules by overriding it providing an empty module with the same name when creating the bpmn-js instance:

var modeler = new BpmnJS({
  additionalModules: [
    {
      bpmnSearch: [ 'value', 'foo' ]
    }
  ]
});

#5

Thanks a lot. Works like a charm!


#7

Please open a new thread when asking a new question so other people with the same question can find it easily.


#8