===
This commit is contained in:
parent
05f0db73ff
commit
e50ff27510
1 changed files with 2 additions and 2 deletions
|
@ -77,10 +77,10 @@ $(document).ready(function() {
|
|||
$(document).keyup(function(e) {
|
||||
if($(e.target).is('input,textarea')){ return; }
|
||||
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) { return; }
|
||||
if (e.keyCode == 37 && $("[rel='previous']").length) {
|
||||
if (e.keyCode === 37 && $("[rel='previous']").length) {
|
||||
window.location.href = $("[rel='previous']").attr("href");
|
||||
}
|
||||
else if (e.keyCode == 39 && $("[rel='next']").length) {
|
||||
else if (e.keyCode === 39 && $("[rel='next']").length) {
|
||||
window.location.href = $("[rel='next']").attr("href");
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue