ctrl+f to close the find window

I want pressing ctrl+f to close the dialog box when it’s open.

So far, the best I can do is to hack dialog.js to add a check for ctrl/cmd+f in the keydown handler there

    if (e.keyCode == 27 || (options.closeOnEnter !== false && e.keyCode == 13) || ( (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)&&e.keyCode==70 )) {

which works, but there might be a nicer way to trigger it externally that I don’t know about, so I thought I’d ask about!

Best,

S

Which other software allows you to close a search dialog with ctrl-f?

At some point, we’re going to have to rewrite the search addon to be more configurable and modular, since it is impossible to cover all desired types of functionality out of the box, but that’s a non-trivial project that I don’t currently have time for. So crudely hacking the code is probably be best way to do this for now.

Okay, I thought it was a common thing, but checking in firefox/safari/chrome/monodevelop/sublime text shows that none of them do it. I guess it’s just a weird thing that I thought felt good :stuck_out_tongue:

(sorry for the delayed reply!)