summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-01-31 23:04:56 +0300
committerAndrew Dolgov <[email protected]>2018-01-31 23:04:56 +0300
commit9d132623b6fc90021c16c494dfbede6b1cde21e8 (patch)
tree83eca3408ae2372a46a959b6dc4059a8d56d64a2
parentc68135b5a4a30d379b8f923f29ed45ee37e47f49 (diff)
next page on space
-rw-r--r--js/read.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/read.js b/js/read.js
index 8455a2c..e096379 100644
--- a/js/read.js
+++ b/js/read.js
@@ -47,8 +47,8 @@ function hotkey_handler(e) {
if ($(".modal").is(":visible"))
return;
- // right
- if (e.which == 39) {
+ // right or space
+ if (e.which == 39 || e.which == 32) {
e.preventDefault();
next_page();
}