Calm motion: animations on this site only fade, with no movement
Shortcut sheet
Keyboard shortcuts in groups, with a search
A list of the keyboard shortcuts of an app, in groups, so a person can learn them. Put it in a modal that opens with "?". To let a person set a shortcut, use the shortcut recorder.
Basic
Player
- Play or pause
- Space
- Skip forward 10 seconds
- LorShift→
- Skip back 10 seconds
- JorShift←
- Mute
- M
Editing
- Cut the selection
- CtrlX
- Undo
- CtrlZ
- Redo
- CtrlShiftZ
- Add a marker
- B
App
- Open the command menu
- CtrlK
- Save the project
- CtrlS
- Show this list
- ?
groupsis a list of{ title, shortcuts }. Each shortcut is{ keys, description }.keysis a combo such asMod+K, or a list of combos that do the same thing, with "or" between them. The keys show asBlessKbd.Modis ⌘ on Apple devices and Ctrl on other devices, andAltis ⌥ on Apple devices. The device is read after the page loads, so the server and the browser agree.- The search box filters the shortcuts by their words or their keys. A group with no match does not show.
search(on by default) shows or hides the box. - The groups go in two columns on a wide screen. Each shortcut is a pair in a description list, so screen readers say the action and then its keys.
- Change the words with
labelsor a label pack:search,none, andor.
Usage
ts
import { BlessShortcutSheet, type BlessShortcutGroup } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
groups* | BlessShortcutGroup[] | — | |
search | boolean | true | show a search box over the list |
labels | Partial<{ search: string; none: string; or: string; }> | — |