Fix Right to Left for keyboard input

This commit is contained in:
Robbo 2022-01-04 20:43:55 +11:00
parent 4b302af2a1
commit 27cc669012

View File

@ -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