From 27cc669012c93b3109de8555795c96a4146bb58f Mon Sep 17 00:00:00 2001 From: Robbo Date: Tue, 4 Jan 2022 20:43:55 +1100 Subject: [PATCH] Fix Right to Left for keyboard input --- public/js/reader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/reader.js b/public/js/reader.js index 0b927cb..b20f1cd 100644 --- a/public/js/reader.js +++ b/public/js/reader.js @@ -122,9 +122,9 @@ const readerComponent = () => { if (this.mode === 'continuous') return; if (event.key === 'ArrowLeft' || event.key === 'k') - this.flipPage(false); + this.flipPage(false ^ this.enableRightToLeft); if (event.key === 'ArrowRight' || event.key === 'j') - this.flipPage(true); + this.flipPage(true ^ this.enableRightToLeft); }, /** * Flips to the next or the previous page