File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments