Keyboard shortcuts reference
Keys the component handles, generated from @shortcut tags next to the implementation.
Used by
Import
Commands
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
0 | 0 | — | No | Reset zoom to defaultScale. |
PageUp | PageUp | — | No | Previous page. |
PageDown | PageDown | — | No | Next page. |
ArrowLeft | ArrowLeft | — | No | Previous page; a zoomed page scrolls horizontally first. |
ArrowRight | ArrowRight | — | No | Next page; a zoomed page scrolls horizontally first. |
Home | Home | — | No | First page. |
End | End | — | No | Last page. |
+ | + | — | No | Zoom in (= also works). |
- | - | — | No | Zoom out (_ also works). |
r | r | — | No | Rotate clockwise. |
Shift+R | Shift + R | — | No | Rotate counter-clockwise. |
f | f | — | No | Toggle fullscreen. |
Ctrl+F | Ctrl + F | — | No | Focus the search field (⌘+F on macOS); Enter and Shift+Enter step through matches, Escape clears. |
Source
packages/react-pdf-viewer/src/types.ts
Generated from content/react-pdf-viewer/reference/keyboard-shortcuts.schema.json. Do not edit by hand.