Skip to content

Commit 2c1f313

Browse files
authored
docs: update 2.keyboard-shortcuts.md to match implementation (#1495)
1 parent d7de1e7 commit 2c1f313

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/content/2.guide/2.keyboard-shortcuts.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ navigation:
77

88
npmx.dev supports keyboard navigation for faster browsing.
99

10-
## Use global shortcuts
10+
## Global shortcuts
1111

12-
| Key | Action |
13-
| --- | ---------------- |
14-
| `/` | Focus search bar |
15-
| `.` | Open code viewer |
12+
| Key | Action |
13+
| --- | ------------------------ |
14+
| `/` | Focus search bar |
15+
| `?` | Highlight keyboard hints |
16+
| `,` | Open settings |
17+
| `c` | Open compare |
18+
19+
::tip
20+
These shortcuts work anywhere on the site. Press `/` from any page to quickly search for a package.
21+
::
1622

17-
## Navigate search results
23+
## Search results
1824

1925
| Key | Action |
2026
| ------------------------- | --------------------- |
2127
| `Arrow Up` / `Arrow Down` | Move through results |
2228
| `Enter` | Open selected package |
2329

24-
## Browse code
25-
26-
When in the code viewer:
30+
## Package page
2731

28-
| Key | Action |
29-
| ------------------------- | ------------------ |
30-
| `Arrow Up` / `Arrow Down` | Navigate file tree |
31-
| `Enter` | Open selected file |
32-
| `Escape` | Close code viewer |
33-
34-
::tip
35-
These shortcuts work anywhere on the site. Press `/` from any page to quickly search for a package.
36-
::
32+
| Key | Action |
33+
| --- | ---------------- |
34+
| `.` | Open code viewer |
35+
| `d` | Open docs |
36+
| `c` | Compare package |

0 commit comments

Comments
 (0)