Skip to content

Commit

Permalink
test: drop explicit keyboard binding
Browse files Browse the repository at this point in the history
This is now implicit, cf. bpmn-io/diagram-js#662
  • Loading branch information
nikku committed Nov 11, 2024
1 parent 8b80565 commit a659e66
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 25 deletions.
3 changes: 0 additions & 3 deletions test/base/ModelerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ describe('<BaseModeler>', function() {

modeler = new Modeler({
container: modelerContainer,
keyboard: {
bindTo: document
},
propertiesPanel: {
parent: propertiesContainer
},
Expand Down
3 changes: 0 additions & 3 deletions test/camunda-cloud/ModelerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ describe('<CamundaCloudModeler>', function() {

modeler = new Modeler({
container: modelerContainer,
keyboard: {
bindTo: document
},
additionalModules: [
...additionalModules
],
Expand Down
5 changes: 1 addition & 4 deletions test/camunda-cloud/NavigatedViewerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ describe('<CamundaCloudNavigatedViewer>', function() {
clearBpmnJS();

modeler = new NavigatedViewer({
container: modelerContainer,
keyboard: {
bindTo: document
}
container: modelerContainer
});

singleStart && modeler.on('commandStack.changed', debounce(function() {
Expand Down
5 changes: 1 addition & 4 deletions test/camunda-cloud/ViewerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ describe('<CamundaCloudViewer>', function() {
clearBpmnJS();

modeler = new Viewer({
container: modelerContainer,
keyboard: {
bindTo: document
}
container: modelerContainer
});

singleStart && modeler.on('commandStack.changed', debounce(function() {
Expand Down
3 changes: 0 additions & 3 deletions test/camunda-platform/ModelerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ describe('<CamundaPlatformModeler>', function() {

modeler = new Modeler({
container: modelerContainer,
keyboard: {
bindTo: document
},
propertiesPanel: {
parent: propertiesContainer
},
Expand Down
5 changes: 1 addition & 4 deletions test/camunda-platform/NavigatedViewerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ describe('<CamundaPlatformNavigatedViewer>', function() {
clearBpmnJS();

viewer = new Viewer({
container: modelerContainer,
keyboard: {
bindTo: document
}
container: modelerContainer
});

setBpmnJS(viewer);
Expand Down
5 changes: 1 addition & 4 deletions test/camunda-platform/ViewerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ describe('<CamundaPlatformViewer>', function() {
clearBpmnJS();

viewer = new Viewer({
container: modelerContainer,
keyboard: {
bindTo: document
}
container: modelerContainer
});

setBpmnJS(viewer);
Expand Down

0 comments on commit a659e66

Please sign in to comment.