Merge pull request #303 from thomasguillot/keyboard-image-navigation

_s: Fix element for left arrow key code.
This commit is contained in:
Konstantin Obenland 2013-08-27 09:05:12 -07:00
commit d598324b67
1 changed files with 1 additions and 1 deletions

View File

@ -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' );