Something went wrong. Try again.
Fork of backnotprop/plannotator with reduced surface area
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738---import { shortcutReferenceSurfaces } from '../lib/shortcutReference';import { formatShortcutBindingsText } from '../../../../packages/ui/shortcuts';---
<p>Keyboard shortcuts available across the Plannotator review and annotation UIs.</p>
{shortcutReferenceSurfaces.map((surface) => ( <Fragment> <h2 id={surface.slug}>{surface.title}</h2> <p>{surface.description}</p>
{surface.sections.map((section) => ( <Fragment> <h3 id={section.slug}>{section.title}</h3> <table> <thead> <tr> <th>Shortcut</th> <th>Action</th> <th>Notes</th> </tr> </thead> <tbody> {section.shortcuts.map((shortcut) => ( <tr> <td><code>{formatShortcutBindingsText(shortcut.bindings)}</code></td> <td>{shortcut.description}</td> <td>{shortcut.hint ?? '—'}</td> </tr> ))} </tbody> </table> </Fragment> ))} </Fragment>))}