@@ -448,10 +448,16 @@ export class DraggableDialog {
448448 this . content = this . dialog . firstChild . firstChild . nextSibling as HTMLElement ;
449449 const close = this . dialog . lastChild ;
450450 close . addEventListener ( 'click' , this . closeDialog . bind ( this ) ) ;
451- close . addEventListener ( 'keydown' , this . actionKey . bind ( this , this . closeDialog . bind ( this ) ) ) ;
451+ close . addEventListener (
452+ 'keydown' ,
453+ this . actionKey . bind ( this , this . closeDialog . bind ( this ) )
454+ ) ;
452455 const help = this . dialog . lastChild . previousSibling ;
453456 help . addEventListener ( 'click' , this . helpDialog . bind ( this , adaptor ) ) ;
454- help . addEventListener ( 'keydown' , this . actionKey . bind ( this , this . helpDialog . bind ( this , adaptor ) ) ) ;
457+ help . addEventListener (
458+ 'keydown' ,
459+ this . actionKey . bind ( this , this . helpDialog . bind ( this , adaptor ) )
460+ ) ;
455461
456462 this . noDrag = Array . from (
457463 this . dialog . querySelectorAll ( '[data-drag="none"]' )
@@ -849,7 +855,7 @@ export class DraggableDialog {
849855 * @param {KeyboardEvent } event The key event to handle
850856 */
851857 protected KeyDown ( event : KeyboardEvent ) {
852- const CLASS = ( this . constructor as typeof DraggableDialog ) ;
858+ const CLASS = this . constructor as typeof DraggableDialog ;
853859 const action = CLASS . keyActions . get ( event . key ) ;
854860 if ( action ) {
855861 action ( this , event ) ;
@@ -903,7 +909,10 @@ export class DraggableDialog {
903909 * @param {(event: KeyboardEvent) => void } action The action to take on enter or space
904910 * @param {KeyboardEvent } event The event to check
905911 */
906- protected actionKey ( action : ( event : KeyboardEvent ) => void , event : KeyboardEvent ) {
912+ protected actionKey (
913+ action : ( event : KeyboardEvent ) => void ,
914+ event : KeyboardEvent
915+ ) {
907916 if ( event . code === 'Enter' || event . code === 'Space' ) {
908917 action ( event ) ;
909918 }
@@ -1009,8 +1018,8 @@ export class DraggableDialog {
10091018 styles : {
10101019 '.mjx-dialog-help' : {
10111020 'max-width' : 'calc(min(50em, 80%))' ,
1012- }
1013- }
1021+ } ,
1022+ } ,
10141023 } ) ;
10151024 help . attach ( ) ;
10161025 this . stop ( event ) ;
@@ -1026,9 +1035,9 @@ export class DraggableDialog {
10261035 if ( ! this . dialog . contains ( event . target as HTMLElement ) ) {
10271036 return false ;
10281037 }
1029- const { x, y} = event ;
1030- const { left, right, top, bottom} = this . dialog . getBoundingClientRect ( ) ;
1031- return ( x >= left && x <= right && y >= top && y <= bottom ) ;
1038+ const { x, y } = event ;
1039+ const { left, right, top, bottom } = this . dialog . getBoundingClientRect ( ) ;
1040+ return x >= left && x <= right && y >= top && y <= bottom ;
10321041 }
10331042
10341043 /**
0 commit comments