Skip to content

Commit

Permalink
feat(demo): bind keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Feb 19, 2024
1 parent b9f103e commit cfa2a36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ let file = { name: 'diagram.bpmn' };
// modeler instance
const bpmnEditor = new BpmnJS({
container: '#canvas',
keyboard: {
bindTo: document.querySelector('body')
},
textRenderer: {
defaultStyle: {
fontFamily: '"Virgil"',
Expand Down

0 comments on commit cfa2a36

Please sign in to comment.