Skip to content

Commit 8059ee1

Browse files
biharckswederik
authored andcommitted
removing keydown event listener
1 parent e22d961 commit 8059ee1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/api.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -577,16 +577,6 @@ class VLWholeSlideMicroscopyImageViewer {
577577
scaleInnerElement.style.margin = '1px';
578578
scaleInnerElement.style.willChange = 'contents,width';
579579

580-
document.addEventListener('keydown', ((e) => {
581-
const key = e.key;
582-
if (key === "Escape") {
583-
this.deactivateDrawInteraction();
584-
this.deactivateSelectInteraction();
585-
this.deactivateModifyInteraction();
586-
mapElement.style.cursor = 'default';
587-
}
588-
}));
589-
590580
}
591581

592582
/* Activate draw interaction.

0 commit comments

Comments
 (0)