Skip to content

Keyboard shortcuts ​

The viewer is fully keyboard-operable out of the box. The table below lists the default bindings – every action is configurable, and the whole system can be disabled.

ActionDefault
Next / previous page→ PageDown / ← PageUp
First / last pageHome / End
Rotate CW / CCWr / Shift+R
Next / previous matchCtrl/⌘ G F3 / Ctrl/⌘ Shift+G Shift+F3
Toggle thumbnailsF4
Zoom in / outCtrl/⌘ + / Ctrl/⌘ -
Reset zoomCtrl/⌘ 0
Toggle searchCtrl/⌘ F
Close overlayEsc
Print / downloadCtrl/⌘ P / Ctrl/⌘ S

Override or disable ​

Pass the shortcuts prop to rebind an action (mod = Ctrl on Windows/Linux, ⌘ on macOS), or an empty array to remove a binding:

vue
<PdfViewer
  :shortcuts="{
    toggleSearch: ['mod+k'],
    print: [],
  }"
/>

Disable keyboard handling entirely:

vue
<PdfViewer :enable-keyboard="false" />

Shortcuts are ignored while focus is in a form field, except Esc, the search toggle, and next / previous match.