diff --git a/src/dom/epub/flow.ts b/src/dom/epub/flow.ts index dd45938b..77bf453c 100644 --- a/src/dom/epub/flow.ts +++ b/src/dom/epub/flow.ts @@ -508,35 +508,37 @@ export class PaginatedFlow extends AbstractFlow { private _handleKeyDown = (event: KeyboardEvent) => { let { key, shiftKey } = event; // Left/right arrows are handled in EPUBView - if (key == 'ArrowUp') { - this.navigateToPreviousPage(); - event.preventDefault(); - return; - } - if (key == 'ArrowDown') { - this.navigateToNextPage(); - event.preventDefault(); - return; - } - if (key == 'PageUp') { - this.navigateToPreviousPage(); - event.preventDefault(); - return; - } - if (key == 'PageDown') { - this.navigateToNextPage(); - event.preventDefault(); - return; - } - if (key == 'Home') { - this.navigateToFirstPage(); - event.preventDefault(); - return; - } - if (key == 'End') { - this.navigateToLastPage(); - event.preventDefault(); - return; + if (!event.shiftKey) { + if (key == 'ArrowUp') { + this.navigateToPreviousPage(); + event.preventDefault(); + return; + } + if (key == 'ArrowDown') { + this.navigateToNextPage(); + event.preventDefault(); + return; + } + if (key == 'PageUp') { + this.navigateToPreviousPage(); + event.preventDefault(); + return; + } + if (key == 'PageDown') { + this.navigateToNextPage(); + event.preventDefault(); + return; + } + if (key == 'Home') { + this.navigateToFirstPage(); + event.preventDefault(); + return; + } + if (key == 'End') { + this.navigateToLastPage(); + event.preventDefault(); + return; + } } if (key == ' ') { if (shiftKey) {