Skip to content

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.