Skip to content

Commit 061b483

Browse files
committed
mergin master changes
2 parents c9abad8 + 8059ee1 commit 061b483

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/api.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -624,15 +624,6 @@ class VLWholeSlideMicroscopyImageViewer {
624624
scaleInnerElement.style.margin = '1px';
625625
scaleInnerElement.style.willChange = 'contents,width';
626626

627-
document.addEventListener('keydown', ((e) => {
628-
const key = e.key;
629-
if (key === "Escape") {
630-
this.deactivateDrawInteraction();
631-
this.deactivateSelectInteraction();
632-
this.deactivateModifyInteraction();
633-
mapElement.style.cursor = 'default';
634-
}
635-
}));
636627
const container = this[_map].getTargetElement();
637628
const pyramid = this._pyramid;
638629

@@ -662,7 +653,7 @@ class VLWholeSlideMicroscopyImageViewer {
662653
*/
663654
activateDrawInteraction(options) {
664655
this.deactivateDrawInteraction();
665-
656+
666657
const customOptionsMapping = {
667658
point: {
668659
type: 'Point',

0 commit comments

Comments
 (0)