Skip to content

Commit 3bd0ad8

Browse files
committed
Fix: keyboard shortcuts not working
1 parent 23ba409 commit 3bd0ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/modeling/diagram/diagram.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,11 +822,11 @@ export abstract class CanvasBase {
822822
};
823823
}
824824

825-
document.onkeydown = (e) => {
825+
document.addEventListener('keydown', (e) => {
826826
if (e.key == 'Escape') {
827827
this.CancelCreateFlow();
828828
}
829-
};
829+
});
830830

831831
this.Canvas.on('mouse:wheel', (opt) => this.onCanvasMouseWheel(opt));
832832
this.Canvas.on('mouse:move', (opt) => this.onCanvasMouseMove(opt));

0 commit comments

Comments
 (0)