This commit is contained in:
Shish 2020-03-02 09:19:45 +00:00
parent 05f0db73ff
commit e50ff27510

View file

@ -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");
}
});