> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# Keyboard shortcuts API overview

> Drop-in and custom keyboard shortcuts for the Portable Text Editor via @portabletext/keyboard-shortcuts.

import {CardGrid, LinkCard} from '@astrojs/starlight/components'
import {PackageManagers} from 'starlight-package-managers'

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.

<PackageManagers pkg="@portabletext/keyboard-shortcuts" />

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

<CardGrid>
  <LinkCard
    title="Customize the toolbar"
    description="Learn more about building custom toolbars."
    href="/editor/guides/customize-toolbar/"
  />
</CardGrid>