CoreFiles by mySites.guru
keyboard-image-navigation.js18 lines, 426 bytes, from wordpress-3.8-beta-1.zip
Raw History Compare with 3.7-beta2
md5
be0b910a76ee9298e63899f5151468c1
sha1
b19e6454320b9a3a03ed29ad10e4d0dbbf75ed1a
sha256
db63adffc2826b54819c473e359b74c316bf4f4d9f2fefb934062edc44c8160c
jQuery( function( $ ) {
	$( document ).on( 'keydown.twentyfourteen', function( e ) {
		var url = false;

		// Left arrow key code.
		if ( e.which === 37 ) {
			url = $( '.previous-image a' ).attr( 'href' );

		// Right arrow key code.
		} else if ( e.which === 39 ) {
			url = $( '.entry-attachment a' ).attr( 'href' );
		}

		if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
			window.location = url;
		}
	} );
} );

No other release has this exact content. See every version of this file.