diff --git a/js/keyboard-image-navigation.js b/js/keyboard-image-navigation.js index 6cc01ac1..9792bd9b 100644 --- a/js/keyboard-image-navigation.js +++ b/js/keyboard-image-navigation.js @@ -2,7 +2,7 @@ jQuery( document ).ready( function( $ ) { $( document ).keydown( function( e ) { var url = false; if ( e.which === 37 ) { // Left arrow key code - url = $( '.previous-image a' ).attr( 'href' ); + url = $( '.nav-previous a' ).attr( 'href' ); } else if ( e.which === 39 ) { // Right arrow key code url = $( '.entry-attachment a' ).attr( 'href' );