> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI3Nzc0MjcyMC1hNDE2LTRjZTktYmNhYS1kZDhhZjRkNDNiMmEiLCJleHAiOjE3NzgzMDY3NTQsImlhdCI6MTc3ODMwNjQ1NH0.hwjhp1pqqyUc3ZkmLJ_39jgNdU0s9CkW-F6IFpZv-0M
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# 键盘快捷键

> 了解 Fern 文档中的键盘快捷键，包括导航快捷键、搜索命令、Ask AI 面板控制和 API playground 快捷键。

Fern 文档包含用于导航、搜索和交互功能的内置键盘快捷键。

## 交互元素

| 操作                                                                                                               | 快捷键                                                       |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| 在交互元素之间移动焦点                                                                                                      | `Tab`                                                     |
| 在交互元素之间向后移动焦点                                                                                                    | `Shift` + `Tab`                                           |
| 激活[按钮](/learn/docs/writing-content/components/button)和[可展开部分](/learn/docs/writing-content/components/accordions) | `Enter` 或 `Space`                                         |
| 关闭打开的对话框、面板和 API playground                                                                                      | `Escape`                                                  |
| 切换 Ask AI 面板                                                                                                     | `Command` + `/` (macOS)<br />`Ctrl` + `/` (Windows/Linux) |
| 切换 API playground/explorer                                                                                       | `Ctrl` + `` ` ``                                          |

<Note>
  `Command`/`Ctrl` + `/` 快捷键不同于单个 `/` 键，后者用于打开常规[搜索对话框](#search)。
</Note>

## 导航

| 操作         | 快捷键                                                               |
| ---------- | ----------------------------------------------------------------- |
| 导航到上一页或下一页 | `Command` + `← / →` (macOS)<br />`Alt` + `← / →` (Windows/Linux)  |
| 滚动到页面顶部或底部 | `Command` + `↑ / ↓` (macOS)<br />`Ctrl` + `↑ / ↓` (Windows/Linux) |

<Note>
  某些浏览器可能会拦截这些快捷键用于前进/后退历史记录导航。
</Note>

## 搜索

| 操作                  | 快捷键                                                       |
| ------------------- | --------------------------------------------------------- |
| 打开搜索对话框             | `Command` + `K` (macOS)<br />`Ctrl` + `K` (Windows/Linux) |
| 当焦点不在文本输入框中时打开搜索对话框 | `/`（正斜杠）                                                  |

<Note>
  当在输入框、`textarea` 或 `contenteditable` 元素中输入时，`/` 快捷键不会生效。
</Note>

在搜索对话框中：

| 操作        | 快捷键     |
| --------- | ------- |
| 在搜索结果之间导航 | `方向键`   |
| 选择搜索结果    | `Enter` |

## 故障排除

如果键盘快捷键不起作用：

* **浏览器冲突**：某些浏览器对自己的功能使用相同的快捷键（例如，`Command` + `← / →` 用于历史记录导航）。
* **操作系统冲突**：您的操作系统可能会拦截某些键盘组合。请检查您的系统键盘设置。
* **输入框中的焦点**：当在文本框中输入时，`/` 快捷键不会生效。请使用 `Command`/`Ctrl` + `K` 代替。
* **扩展程序冲突**：浏览器扩展程序可能会覆盖键盘快捷键。请尝试禁用扩展程序。