summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-26 21:01:04 +0300
committerAndrew Dolgov <[email protected]>2017-06-26 21:01:04 +0300
commit36545b137211bff244e91a137a3add9817d9664c (patch)
tree3e4084d10f56e4c98c75466f53eb761a39792ea8 /js
parent0bc8f464fdb4710fd20fd29f766c2f346905c5a3 (diff)
hotkey_handler: prevent default handling of page changing events
Diffstat (limited to 'js')
-rw-r--r--js/read.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/read.js b/js/read.js
index 9ca4515..e028229 100644
--- a/js/read.js
+++ b/js/read.js
@@ -19,11 +19,13 @@ function hotkey_handler(e) {
// right
if (e.which == 39) {
+ e.preventDefault();
next_page();
}
// left
if (e.which == 37) {
+ e.preventDefault();;
prev_page();
}