Created
February 2, 2019 15:11
-
-
Save ozydingo/6d268ea7538c869f0c636ee1c069ce4d to your computer and use it in GitHub Desktop.
a/z key scrolling to scroll-disabled web content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function KeyPress(e) { | |
var evtobj = window.event? event : e | |
if (evtobj.keyCode == 90) { | |
window.scrollBy(0, 100) | |
} | |
if (evtobj.keyCode == 65) { | |
window.scrollBy(0, -100) | |
} | |
} | |
document.onkeydown = KeyPress; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment