|
| 1 | +--- |
| 2 | +title: "Keyboard shortcuts" |
| 3 | +description: "Learn about keyboard shortcuts in Fern documentation, including navigation shortcuts, search commands, Ask AI panel controls, and API playground shortcuts." |
| 4 | +--- |
| 5 | + |
| 6 | +Fern docs include built-in keyboard shortcuts for navigation, search, and interactive features. |
| 7 | + |
| 8 | +## Interactive elements |
| 9 | + |
| 10 | +| Action | Shortcut | |
| 11 | +|--------|----------| |
| 12 | +| Move focus between interactive elements | `Tab` | |
| 13 | +| Move focus backward between interactive elements | `Shift` + `Tab` | |
| 14 | +| Activate [buttons](/learn/docs/writing-content/components/button) and [expandable sections](/learn/docs/writing-content/components/accordions) | `Enter` or `Space` | |
| 15 | +| Close open dialogs, panels, and the API playground | `Escape` | |
| 16 | +| Toggle Ask AI panel | `Command` + `/` (macOS)<br/>`Ctrl` + `/` (Windows/Linux) | |
| 17 | +| Toggle API playground/explorer | `Ctrl` + `` ` `` | |
| 18 | + |
| 19 | +<Note> |
| 20 | +The `Command`/`Ctrl` + `/` shortcut is different from the single `/` key which opens the regular [search dialog](#search). |
| 21 | +</Note> |
| 22 | + |
| 23 | +## Navigation |
| 24 | + |
| 25 | +| Action | Shortcut | |
| 26 | +|--------|----------| |
| 27 | +| Navigate to the previous or next page | `Command` + `← / →` (macOS)<br/>`Alt` + `← / →` (Windows/Linux) | |
| 28 | +| Scroll to top or bottom of page | `Command` + `↑ / ↓` (macOS)<br/>`Ctrl` + `↑ / ↓` (Windows/Linux) | |
| 29 | + |
| 30 | +<Note> |
| 31 | +Some browsers may intercept these shortcuts for back/forward history navigation. |
| 32 | +</Note> |
| 33 | + |
| 34 | +## Search |
| 35 | + |
| 36 | +| Action | Shortcut | |
| 37 | +|--------|----------| |
| 38 | +| Open search dialog | `Command` + `K` (macOS)<br/>`Ctrl` + `K` (Windows/Linux) | |
| 39 | +| Open search dialog when focus isn't in a text input field | `/` (forward slash) | |
| 40 | + |
| 41 | +<Note> |
| 42 | +The `/` shortcut won't work when typing in an input field, `textarea`, or `contenteditable` element. |
| 43 | +</Note> |
| 44 | + |
| 45 | +Within the search dialog: |
| 46 | + |
| 47 | +| Action | Shortcut | |
| 48 | +|--------|----------| |
| 49 | +| Navigate between search results | `Arrow keys` | |
| 50 | +| Select a search result | `Enter` | |
| 51 | + |
| 52 | +## Troubleshooting |
| 53 | + |
| 54 | +If keyboard shortcuts aren't working: |
| 55 | + |
| 56 | +- **Browser conflicts**: Some browsers use the same shortcuts for their own features (e.g., `Command` + `← / →` for history navigation). |
| 57 | +- **Operating system conflicts**: Your OS may intercept certain keyboard combinations. Check your system keyboard settings. |
| 58 | +- **Focus in input fields**: The `/` shortcut won't work when typing in a text field. Use `Command`/`Ctrl` + `K` instead. |
| 59 | +- **Extension conflicts**: Browser extensions may override keyboard shortcuts. Try disabling extensions. |
0 commit comments