2 * Twenty Fourteen keyboard support for image navigation.
5 $( document ).on( 'keydown.twentyfourteen', function( e ) {
8 // Left arrow key code.
9 if ( e.which === 37 ) {
10 url = $( '.previous-image a' ).attr( 'href' );
12 // Right arrow key code.
13 } else if ( e.which === 39 ) {
14 url = $( '.entry-attachment a' ).attr( 'href' );
17 if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
18 window.location = url;