Ticket #46682: 46682.diff
File 46682.diff, 1.0 KB (added by , 6 years ago) |
---|
-
src/js/_enqueues/admin/site-health.js
33 33 } 34 34 } ); 35 35 36 $( '.health-check-accordion' ).on( 'keyup', '.health-check-accordion-trigger', function( e ) { 37 if ( '38' === e.keyCode.toString() ) { 36 // Arrows navigation on the accordion headers. 37 $( '.health-check-accordion' ).on( 'keydown', '.health-check-accordion-trigger', function( event ) { 38 if ( 38 === event.which ) { 39 event.preventDefault(); 38 40 $( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).prevAll( 'dt' ) ).focus(); 39 } else if ( '40' === e.keyCode.toString() ) { 40 $( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).nextAll( 'dt' ) ).focus(); 41 } else if ( 40 === event.which ) { 42 event.preventDefault(); 43 $( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).nextAll( 'dt' ) ).first().focus(); 41 44 } 42 45 } ); 43 46