Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CommandPalettePlugin

React export:

import { CommandPalettePlugin } from "@artisansdk/workbench/react"

Behavior:

  • registers the command palette modal
  • registers OpenCommandPalette
  • listens for that event and opens the modal
  • optionally registers the palette hotkey

Default hotkey: $mod+k

workbench.use(new CommandPalettePlugin())

The reserved modal ID is:

COMMAND_PALETTE_MODAL_ID = "$workbench:command-palette"

Use hotkey: null if you want the palette available without a default binding.