function mmm_accessibility_actions () {
			window.onkeydown = function( onkeydown_event ) {
				if ( jQuery( onkeydown_event.target ).hasClass( 'item_link' ) ) {
					if ( onkeydown_event.keyCode == 32 ) {
						onkeydown_event.preventDefault();
						check_condition = jQuery( onkeydown_event.target ).parent( '.menu-item' ).hasClass( 'keep_open' );
						jQuery( '.mega_main_menu .keep_open' ).removeClass( 'keep_open' );
						jQuery( '.mega_main_menu [aria-expanded="true"]' ).attr( 'aria-expanded', false );
						jQuery( onkeydown_event.target ).parents( '.menu-item' ).addClass( 'keep_open' );
						jQuery( onkeydown_event.target ).attr( 'aria-expanded', true );
						jQuery( onkeydown_event.target ).siblings( ".mega_dropdown" ).attr( 'aria-expanded', true );
						if ( check_condition ) {
							jQuery( onkeydown_event.target ).parent( '.menu-item' ).removeClass( 'keep_open' );
							jQuery( onkeydown_event.target ).attr( 'aria-expanded', false );
							jQuery( onkeydown_event.target ).siblings( ".mega_dropdown" ).attr( 'aria-expanded', false );
						}
					}
				} else {
					jQuery( '.mega_main_menu .keep_open' ).removeClass( 'keep_open' );
					jQuery( '.mega_main_menu [aria-expanded="true"]' ).attr( 'aria-expanded', false );
				}
			};
		}
/* 
		 * For accessibility compatibility. keep_open dropdowns when user press "space" on keyboard if some menu link in focus.
		 */
For accessibility compatibility. keep_open dropdowns when user press "space" on keyboard if some menu link in focus.
For accessibility compatibility . keep_open dropdowns when user press " space " on keyboard if some menu link in focus .
function mmm_accessibility_actions () {
			window.onkeydown = function( onkeydown_event ) {
				if ( jQuery( onkeydown_event.target ).hasClass( 'item_link' ) ) {
					if ( onkeydown_event.keyCode == 32 ) {
						onkeydown_event.preventDefault();
						check_condition = jQuery( onkeydown_event.target ).parent( '.menu-item' ).hasClass( 'keep_open' );
						jQuery( '.mega_main_menu .keep_open' ).removeClass( 'keep_open' );
						jQuery( '.mega_main_menu [aria-expanded="true"]' ).attr( 'aria-expanded', false );
						jQuery( onkeydown_event.target ).parents( '.menu-item' ).addClass( 'keep_open' );
						jQuery( onkeydown_event.target ).attr( 'aria-expanded', true );
						jQuery( onkeydown_event.target ).siblings( ".mega_dropdown" ).attr( 'aria-expanded', true );
						if ( check_condition ) {
							jQuery( onkeydown_event.target ).parent( '.menu-item' ).removeClass( 'keep_open' );
							jQuery( onkeydown_event.target ).attr( 'aria-expanded', false );
							jQuery( onkeydown_event.target ).siblings( ".mega_dropdown" ).attr( 'aria-expanded', false );
						}
					}
				} else {
					jQuery( '.mega_main_menu .keep_open' ).removeClass( 'keep_open' );
					jQuery( '.mega_main_menu [aria-expanded="true"]' ).attr( 'aria-expanded', false );
				}
			};
		}
function mmm_accessibility_actions ( ) { window . onkeydown = function ( onkeydown_event ) { if ( jQuery ( onkeydown_event . target ) . hasClass ( 'item_link' ) ) { if ( onkeydown_event . keyCode == 32 ) { onkeydown_event . preventDefault ( ) ; check_condition = jQuery ( onkeydown_event . target ) . parent ( '.menu-item' ) . hasClass ( 'keep_open' ) ; jQuery ( '.mega_main_menu .keep_open' ) . removeClass ( 'keep_open' ) ; jQuery ( '.mega_main_menu [aria-expanded="true"]' ) . attr ( 'aria-expanded' , false ) ; jQuery ( onkeydown_event . target ) . parents ( '.menu-item' ) . addClass ( 'keep_open' ) ; jQuery ( onkeydown_event . target ) . attr ( 'aria-expanded' , true ) ; jQuery ( onkeydown_event . target ) . siblings ( ".mega_dropdown" ) . attr ( 'aria-expanded' , true ) ; if ( check_condition ) { jQuery ( onkeydown_event . target ) . parent ( '.menu-item' ) . removeClass ( 'keep_open' ) ; jQuery ( onkeydown_event . target ) . attr ( 'aria-expanded' , false ) ; jQuery ( onkeydown_event . target ) . siblings ( ".mega_dropdown" ) . attr ( 'aria-expanded' , false ) ; } } } else { jQuery ( '.mega_main_menu .keep_open' ) . removeClass ( 'keep_open' ) ; jQuery ( '.mega_main_menu [aria-expanded="true"]' ) . attr ( 'aria-expanded' , false ) ; } } ; }
For accessibility compatibility.
For accessibility compatibility .