diff options
author | Andrew Dolgov <[email protected]> | 2017-06-26 21:01:04 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-06-26 21:01:04 +0300 |
commit | 36545b137211bff244e91a137a3add9817d9664c (patch) | |
tree | 3e4084d10f56e4c98c75466f53eb761a39792ea8 | |
parent | 0bc8f464fdb4710fd20fd29f766c2f346905c5a3 (diff) |
hotkey_handler: prevent default handling of page changing events
-rw-r--r-- | js/read.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); } |