This commit is contained in:
Shish 2020-02-04 02:00:26 +00:00
parent 13f4de8c14
commit 274f9fc7a8

View File

@ -77,8 +77,8 @@ $(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='prev']").length) {
window.location.href = $("[rel='pref']").attr("href");
if (e.keyCode == 37 && $("[rel='previous']").length) {
window.location.href = $("[rel='previous']").attr("href");
}
else if (e.keyCode == 39 && $("[rel='next']").length) {
window.location.href = $("[rel='next']").attr("href");