From 0138294b36923c89292be9ba86f96843dd0b16c1 Mon Sep 17 00:00:00 2001 From: subdiox Date: Sun, 18 Apr 2021 03:20:41 +0900 Subject: [PATCH] Fix an issue that space key doesn't work intentionally when inverting reading direction --- cps/static/js/kthoom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/static/js/kthoom.js b/cps/static/js/kthoom.js index 56038fc6..613eed2b 100644 --- a/cps/static/js/kthoom.js +++ b/cps/static/js/kthoom.js @@ -532,11 +532,11 @@ function keyHandler(evt) { if (evt.shiftKey && atTop) { evt.preventDefault(); // If it's Shift + Space and the container is at the top of the page - showLeftPage(); + showPrevPage(); } else if (!evt.shiftKey && atBottom) { evt.preventDefault(); // If you're at the bottom of the page and you only pressed space - showRightPage(); + showNextPage(); container.scrollTop(0); } break;