Skip to content
This page is available as Markdown at /editor/reference/keyboard-shortcuts.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

Keyboard shortcuts API overview

The Keyboard Shortcuts API offers drop-in keyboard shortcuts for the editor that can be paired with toolbar buttons, as well as a way to create your own custom keyboard shortcuts.

Terminal window
npm i @portabletext/keyboard-shortcuts

See the Generated API reference for available keyboard shortcuts (variables) and functions for creating your own.