-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy pathShortcutReference.astro
More file actions
37 lines (34 loc) · 1.04 KB
/
ShortcutReference.astro
File metadata and controls
37 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
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>
))}