# Options to disable hijack of CMD+F / CTRL+F and "/" keys for search?

**URL:** https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875
**Category:** Feature
**Tags:** keyboard-shortcuts
**Created:** [25 Junio, 2014 21:04 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875 "2014-06-25T21:04:48Z")
**Posts on this page:** 6
**Page:** 3

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9 Septiembre, 2014 23:29 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/45 "2014-09-09T23:29:14Z")

</div>

We changed it so that ctrl+f triggers Discourse search only when there are more than 20 posts loaded in the current topic stream.

So on smaller topics, this now works like the browser default.

Only on larger topics will you get Discourse search, which is necessary because not all posts are loaded in the DOM (think 100+ replies) at any given time, only the visible ones are.

---

<div class="post-metadata">

### Author: ![brpc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brpc/32/114370_2.png) [@brpc](https://meta.discourse.org/u/brpc)
#### Post date: [10 Septiembre, 2014 19:07 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/46 "2014-09-10T19:07:19Z")

</div>

I find this to be a fairly acceptable compromise, given the technical limitations.

Is there a tutorial feature for Discourse? If there is, or if there are plans for one, maybe notifying the user that if a thread is too large/etc for browser search that it will default to built-in search?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8 Octubre, 2014 11:22 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/47 "2014-10-08T11:22:46Z")

</div>

We have heard pretty much zero complaints since we implemented the new “very restricted” we have no choice so we hijack system. Closing.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8 Octubre, 2014 11:22 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/48 "2014-10-08T11:22:49Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [24 Junio, 2019 23:18 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/49 "2019-06-24T23:18:03Z")

</div>

I did want to expand this now that I have seen some complaints about the restricted implementation.

We hijack when we have no choice.

While reading this post:

- Hit CTRL-F / CTRL-F - type “universally” … nothing. (except for this post)

- OK search in topic, post #1 and post #3 have this word.

When you are 40 posts into a topic post #1 and #3 are peeled off the DOM for performance reasons so it would be extremely surprising for it not to be found.

I can think of ways around this issue for say 100 post topics, we could unconditionally keep the text around and only strip off images with a “mini cloak” but then what about 5000 post topics? At some point we just don’t want to force the server to send tons of data you will not be reading down to the browser.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [25 Junio, 2019 00:08 UTC](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/50 "2019-06-25T00:08:56Z")

</div>

Just press CTRL+F twice if you think you’re smarter than Discourse. Find out if you are 😏

[Página anterior](https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875.md?page=2)
