From: Vincent Vanwaelscappel Date: Tue, 28 May 2019 14:46:10 +0000 (+0200) Subject: fix #2802 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6731a93d2108dd5f78d0fe16f8c4cea5d4bc4030;p=fluidbook-html5.git fix #2802 @0:05 --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index 355e0c24..d246ddbb 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -171,13 +171,23 @@ Fluidbook.prototype = { $this.goFirstPage(); }); key('end', function () { + $this.goLastPage(); + }); key('left', function () { - $this.goPreviousPage(); + if ($this.l10n.dir === 'ltr') { + $this.goPreviousPage(); + } else { + $this.goNextPage(); + } }); key('right', function () { - $this.goNextPage(); + if ($this.l10n.dir === 'ltr') { + $this.goNextPage(); + } else { + $this.goPreviousPage(); + } }); // See fluidbook.audiodescription.js for specific shortcuts },