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