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.
npm i @portabletext/keyboard-shortcutspnpm add @portabletext/keyboard-shortcutsyarn add @portabletext/keyboard-shortcutsSee the Generated API reference for available keyboard shortcuts (variables) and functions for creating your own.
Customize the toolbar Learn more about building custom toolbars.