Fix problem with arrow navigation
For some reason the arrow navigation stopped working, this adds some workarounds to make it workable again.
This commit is contained in:
parent
0a195f8a8f
commit
11524e9f14
2 changed files with 11 additions and 8 deletions
|
@ -79,17 +79,18 @@
|
|||
else document.body.className = "";
|
||||
}
|
||||
|
||||
document.onkeydown = checkKey;
|
||||
|
||||
function checkKey(e) {
|
||||
e = e || window.event;
|
||||
if (e.keyCode === '37') {
|
||||
if (e.keyCode === 37) {
|
||||
window.location.href = "feedthemonkey:previous";
|
||||
}
|
||||
else if (e.keyCode === '39') {
|
||||
else if (e.keyCode === 39) {
|
||||
window.location.href = "feedthemonkey:next";
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("keydown", checkKey);
|
||||
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue