Keyboard interaction
| Key | Action |
|---|---|
| ⌘K or Ctrl+K | Open or close the palette. |
| Down and up arrows | Move through the commands, around the ends. |
| Page Down and Page Up | Move ten commands. |
| Enter | Run the active command, or open its page. |
| Escape | Go back a page; at the top, close the palette. |
| Backspace | In an empty field on a page, go back. |
Accessibility notes
- It is a native modal
<dialog>: the page behind is inert, focus stays inside, and closing returns focus where it was. - The search field is a
comboboxthat points at the active command witharia-activedescendant. On a page, it takes the page’s name. - Shortcut keys are text in each option, so screen readers read them. The key hints at the bottom are hidden from assistive technology.
- Shortcuts without Ctrl, Alt or ⌘ don’t run while you type in a field.