summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/read.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/read.js b/js/read.js
index 0527bd5..3c0f652 100644
--- a/js/read.js
+++ b/js/read.js
@@ -98,7 +98,7 @@ function prev_page() {
function hotkey_handler(e) {
try {
- //console.log('K:' + e.which);
+ //console.log('K:' + e.which, e);
if ($(".modal").is(":visible"))
return;
@@ -139,7 +139,9 @@ function resize_side_columns() {
}
$(document).ready(function() {
- document.onkeydown = hotkey_handler;
+ $(document).on("keyup", function(e) {
+ hotkey_handler(e);
+ });
$("#left").on("mouseup", function(evt) {
prev_page();