From e07730b465c161f1c4b96b2e9cf50d36624cd8aa Mon Sep 17 00:00:00 2001 From: Christian Aribaud Date: Mon, 17 Apr 2023 18:44:24 +0200 Subject: [PATCH] Changing ctrl for shift --- comic_reader.js | 8 ++++---- comic_reader_test_high_res.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/comic_reader.js b/comic_reader.js index 4ed0b74..a4427c6 100644 --- a/comic_reader.js +++ b/comic_reader.js @@ -281,14 +281,14 @@ function moveReader(to_next, move_page) { // CALLBACKS // ============= -function handleKeyPress(key, has_ctrl){ +function handleKeyPress(key, has_shift){ if (key == MOVE_NEXT) { - moveReader(true, has_ctrl) + moveReader(true, has_shift) } else if (key == MOVE_BACK) { - moveReader(false, has_ctrl) + moveReader(false, has_shift) } else if (key.toUpperCase() == TOGGLE_FULLSCREEN){ @@ -335,7 +335,7 @@ addEventListener("resize", (event) => { }); addEventListener("keydown", (event) => { - handleKeyPress(event.key, event.ctrlKey) + handleKeyPress(event.key, event.shiftKey) }); addEventListener("wheel", (event) => { diff --git a/comic_reader_test_high_res.html b/comic_reader_test_high_res.html index 435e548..0e98627 100644 --- a/comic_reader_test_high_res.html +++ b/comic_reader_test_high_res.html @@ -44,7 +44,7 @@
F
: Toggle fullscreen
/ scroll up / clic left : previous panel
/ scroll down / clic center or right : next panel
-
CRTL
+
/
: previous / next page
+
SHIFT
+
/
: previous / next page