# Discourse 不再劫持 ctrl+f 了？

**URL:** https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605
**Category:** Support
**Tags:** search, keyboard-shortcuts
**Created:** [2026年一月15日 23:08 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605 "2026-01-15T23:08:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Pod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pod/32/119253_2.png) [@Pod](https://meta.discourse.org/u/Pod)
#### Post date: [2026年一月15日 23:08 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605/1 "2026-01-15T23:08:53Z")

</div>

一个有争议的功能，我以前也曾强烈反对过它，似乎已经停止工作了。在这里或在QT3上按ctrl+f，只会使用我浏览器的搜索功能。它不再弹出“帖子”模式下的Discourse搜索栏。

我试过Firefox和Chrome，登录或未登录状态下都一样。

我搜索了这个论坛和谷歌，但没有看到任何关于此功能被移除的公告。

所以我不太确定应该把这个问题归入哪个类别。也就是说，该功能是否应该仍然有效，如果它坏了，那就是一个错误（bug）。该功能是故意移除的吗？是只有我这样，其他人能看到这个故障吗？（我猜只有我这样，因为我没有看到其他人谈论它）

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2026年一月15日 23:26 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605/2 "2026-01-15T23:26:03Z")

</div>

快捷方式已于四月被移除

> <https://github.com/discourse/discourse/pull/32281>
>
> This commit removes the Ctrl+F search shortcut, which hijacks the
> browser searc…h shortcut in Discourse. We are doing this because there
> has been many years of complaints around this behaviour, and now that
> we have the new header search it has become even more annoying.
> 
> We originally added this because we lazy load posts in a topic, and it
> might not have been immediately clear to users that they are not searching
> all the posts in the topic when pressing Ctrl+F. However, that was 10+ years
> ago, most people are very familiar with lazy loading now, it doesn't make sense
> to keep this additional hijack for this one topic use case.
> 
> Search is still accessible by pressing the \`/\` shortcut.

然而，相关主题似乎尚未更新。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2026年一月15日 23:51 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605/3 "2026-01-15T23:51:29Z")

</div>

是的，这是有意移除的。如果您在较长的帖子中想念 Discourse 的搜索功能，可以使用 `/` 快捷键。

---

<div class="post-metadata">

### Author: ![Rubi](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@Rubi](https://meta.discourse.org/u/Rubi)
#### Post date: [2026年一月16日 04:18 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605/4 "2026-01-16T04:18:23Z")

</div>

有趣的是，我实际上喜欢对较长的主题使用 Ctrl+F。

好吧，改变是必然的……

感谢您为使 Discourse 成为最好的平台所做的所有辛勤工作。

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2026年一月16日 10:59 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605/5 "2026-01-16T10:59:48Z")

</div>

很有趣，我最近读到一些关于 Discourse 劫持了浏览器的 Ctrl+f 功能的旧话题。我理解其意图，但在使用 Discourse 的 7 年多时间里，它一直比帮助我更让我烦恼。我很高兴看到这个功能被移除，特别是现在有了 \ 快捷键来替代它（尽管在法式键盘上需要按两个键）。:discourse2:

---

<div class="post-metadata">

### Author: ![Noble\_Fish](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@Noble\_Fish](https://meta.discourse.org/u/Noble_Fish)
#### Post date: [2026年二月12日 20:30 UTC](https://meta.discourse.org/t/discourse-no-longer-hijacks-ctrl-f/393605/6 "2026-02-12T20:30:27Z")

</div>

有人高兴，有人难过。🙂  
事实上，我更希望它成为一个可自定义的选项，默认使用 \text{/} 键。因为不同的群体对此有不同的看法，我遇到的第一个 Discourse 站点要求按 \text{Ctrl}+\text{F} 两次，根据不完全统计，我周围超过 70% 的人更喜欢按 \text{Ctrl}+\text{F} 多次来切换所有用于搜索目的的多个功能，而不是使用不同的按键绑定来区分不同的搜索功能。特别是该功能后来更改为在帖子数量不大时（如果能定义此阈值会更好），无需按 \text{Ctrl}+\text{F} 两次。
