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

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

  • Add class="mousetrap" to the input field.
  • Close the search window when Ctrl+F is pressed
  • Do not stop the default behaviour (return true instead of false in the event handler)