# 跳转到特定类别

**URL:** https://meta.discourse.org/t/jump-to-a-specific-category/387083
**Category:** Support
**Tags:** keyboard-shortcuts
**Created:** [2025年十月29日 15:56 UTC](https://meta.discourse.org/t/jump-to-a-specific-category/387083 "2025-10-29T15:56:36Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2025年十月30日 15:38 UTC](https://meta.discourse.org/t/jump-to-a-specific-category/387083/4 "2025-10-30T15:38:11Z")

</div>

您可以在主题组件中添加键盘快捷键。在初始化程序中可以这样做：

```js
export default {
  name: "setup-shortcuts",
  initialize() {
    withPluginApi("0.11.4", () => {
      KeyboardShortcuts.addShortcut("g 1", null, {
        path: "/c/community-wiki/developers/179",
      });
    });
  }
}

```

---

_[View the full topic](https://meta.discourse.org/t/jump-to-a-specific-category/387083)._
