# Keyboard shortcuts reference

Keys the component handles, generated from `@shortcut` tags next to the implementation.

## Used by

- [Keyboard shortcuts](https://react-pdf-viewer-chi.vercel.app/react-pdf-viewer/keyboard-shortcuts.md)

## Import

```ts
```

## 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](https://github.com/kiralygyula92/react-pdf-viewer/blob/main/packages/react-pdf-viewer/src/types.ts#L271)

