diff --git a/src/dom/epub/epub-view.ts b/src/dom/epub/epub-view.ts index cae07dd4..ba6c3f74 100644 --- a/src/dom/epub/epub-view.ts +++ b/src/dom/epub/epub-view.ts @@ -452,25 +452,27 @@ class EPUBView extends DOMView { protected override _handleKeyDown(event: KeyboardEvent) { let { key } = event; - if (key == 'ArrowLeft') { - if (this._pageProgressionRTL) { - this.flow.navigateToNextPage(); - } - else { - this.flow.navigateToPreviousPage(); - } - event.preventDefault(); - return; - } - if (key == 'ArrowRight') { - if (this._pageProgressionRTL) { - this.flow.navigateToPreviousPage(); + if (!event.shiftKey) { + if (key == 'ArrowLeft') { + if (this._pageProgressionRTL) { + this.flow.navigateToNextPage(); + } + else { + this.flow.navigateToPreviousPage(); + } + event.preventDefault(); + return; } - else { - this.flow.navigateToNextPage(); + if (key == 'ArrowRight') { + if (this._pageProgressionRTL) { + this.flow.navigateToPreviousPage(); + } + else { + this.flow.navigateToNextPage(); + } + event.preventDefault(); + return; } - event.preventDefault(); - return; } super._handleKeyDown(event);