forked from mirror/_s
_s: Fix element for left arrow key code
Previous one was deprecated
This commit is contained in:
parent
0ac069a0bf
commit
f87479f70d
|
@ -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' );
|
||||
|
|
Reference in New Issue