2 * Twenty Sixteen keyboard support for image navigation.
6 $( document ).on( 'keydown.twentysixteen', function( e ) {
9 // Left arrow key code.
10 if ( 37 === e.which ) {
11 url = $( '.nav-previous a' ).attr( 'href' );
13 // Right arrow key code.
14 } else if ( 39 === e.which ) {
15 url = $( '.nav-next a' ).attr( 'href' );
22 if ( url && ! $( 'textarea, input' ).is( ':focus' ) ) {
23 window.location = url;