Disable $(document).keydown
Question
i have code js in theme:
$(document).keydown(function(a) {
37 == a.which || 65 == a.which ? $("#prev_chap")[0].click() : 39 == a.which || 68 == a.which ? $("#next_chap")[0].click() : 83 == a.which ? (a = $(window).scrollTop(), $(window).scrollTop(a + 37)) : 87 == a.which && (a = $(window).scrollTop(), $(window).scrollTop(a - 37))
});
i want disable this js for 87 & 83 in my child theme single.php.
please help me, thanks a lot <3
0
javascript, jquery
4 years
2019-10-29T10:18:30-05:00
2019-10-29T10:18:30-05:00 0 Answers
85 views
0
Leave an answer