X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/febc815b2c9d85be5717da9e8d164bd2daa97e31..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js diff --git a/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js b/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js deleted file mode 100644 index 7073235b..00000000 --- a/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Twenty Fourteen keyboard support for image navigation. - */ -( 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; - } - } ); -} )( jQuery ); \ No newline at end of file