# Pressing Ctrl+F twice on topic search should close the Discourse search window

**URL:** <https://meta.discourse.org/t/pressing-ctrl-f-twice-on-topic-search-should-close-the-discourse-search-window/19649>\
**Category:** Feature\
**Created:** [Setembro 4, 2014, 8:36pm UTC](https://meta.discourse.org/t/pressing-ctrl-f-twice-on-topic-search-should-close-the-discourse-search-window/19649 "2014-09-04T20:36:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [Setembro 4, 2014, 8:56pm UTC](https://meta.discourse.org/t/pressing-ctrl-f-twice-on-topic-search-should-close-the-discourse-search-window/19649/3 "2014-09-04T20:56:57Z")

</div>

After a quick look at the documentation of Mousetrap it looks like the following could work:

- Add `class="mousetrap"` to the [input field](http://craig.is/killing/mice#api.bind.text-fields).
- Close the search window when Ctrl+F is pressed
- Do _not_ stop the [default behaviour](http://craig.is/killing/mice#api.bind.default) (return `true` instead of `false` in the event handler)

---

_[View the full topic](https://meta.discourse.org/t/pressing-ctrl-f-twice-on-topic-search-should-close-the-discourse-search-window/19649)._
