w/extensions/MobileFrontend/resources/mobile.toggle/toggle.js
/**
	 * Enables toggling via enter and space keys
	 *
	 * @ignore
	 * @param {Toggler} toggler instance.
	 * @param {jQuery.Object} $heading
	 */
Enables toggling via enter and space keys
@ignore
@param {Toggler} toggler instance.
Enables toggling via enter and space keys @ignore @param { Toggler } toggler instance .
function enableKeyboardActions( toggler, $heading ) {
		$heading.on( 'keypress', function ( ev ) {
			if ( ev.which === 13 || ev.which === 32 ) {
				toggler.toggle( $heading );
			}
		} ).find( 'a' ).on( 'keypress mouseup', function ( ev ) {
			ev.stopPropagation();
		} );
	}
function enableKeyboardActions ( toggler , $heading ) { $heading . on ( 'keypress' , function ( ev ) { if ( ev . which === 13 || ev . which === 32 ) { toggler . toggle ( $heading ) ; } } ) . find ( 'a' ) . on ( 'keypress mouseup' , function ( ev ) { ev . stopPropagation ( ) ; } ) ; }
Enables toggling via enter and space keys
 @ignore
 @param {Toggler} toggler instance.
Enables toggling via enter and space keys @ignore @param { Toggler } toggler instance .
// Only handle keypresses on the "Enter" or "Space" keys