Skip to content

Commit

Permalink
_s: Fix element for left arrow key code
Browse files Browse the repository at this point in the history
Previous one was deprecated
  • Loading branch information
thomasguillot committed Aug 27, 2013
1 parent 0ac069a commit f87479f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/keyboard-image-navigation.js
Expand Up @@ -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' );
Expand Down

0 comments on commit f87479f

Please sign in to comment.