Sadly the keyboard shortcut CtrlK and CtrlQ do not work in comments:

Formatting Keyboard Shortcuts for Comments

Typing ` is a pain on German keyboards.

But since the latest Firefox version 47.0.1 (or maybe earlier) Firefox opens a search page with CtrlK. Having used it so much CtrlK is saved in muscle memory and I forget and hit it in comments ... Boom! There goes my comment. When I navigate back the comment typed so far is gone.

This is killing me. Ideally, CtrlK would work the same in comments and postings. But I would be happy to at least stop the hijacking. My search how to do it came up empty so far. Any good solutions?

  • Since Firefox single.digit Ctrl + K focuses on the search toolbar – random Jul 10 '16 at 3:30
  • @random: I remember solving a related problem (or this one?) some years ago, just not how any more. Maybe my solution was obsoleted by an update somehow making me think the problem is new. Either way, I would love any solution. – Erwin Brandstetter Jul 10 '16 at 3:44
  • 1
    I can not confirm this problem. With 47.0.0 Ctrl + K changed the focus to the search box, but it did not open a search page (thus the comment was safe). After updating to 47.0.1 it did not even change focus - nothing happened pressing Ctrl + K (except any selection is cleared). – Peter Mortensen Jul 10 '16 at 16:13
  • As a workaround for the keyboard problem, I have built the Ctrl + K functionality into Edit Overflow (currently Windows only) - it's then Ctrl + C, Alt + Tab, Ctrl + K, Alt + Tab, and Ctrl + V (it is faster than it looks). Originally, it was for when occasionally Ctrl + K did work in edit boxes. – Peter Mortensen Jul 10 '16 at 16:19
  • I haven't tried this, but incidentally Vimperator may block Ctrl + K (but it is a long time ago). – Peter Mortensen Jul 10 '16 at 16:33
  • @PeterMortensen: Your comment made me realize a workaround. Thanks a lot! I added an answer. If you want to add your own answer I would prefer and accept that. – Erwin Brandstetter Jul 10 '16 at 16:40

@Peter Mortensen's comment made me find a workaround for the immediate problem:

Firefox only jumps to a new search page when the search box next to the URL box has been removed from the menu (right click - Customize...) - which I did. (It's a useless waste of space, I search in the URL bar.)

After restoring the search box, Firefox instead moves the focus to the box and I am not hijacked any more. Seems like a Firefox bug.

(I would still love it if CtrlK would work to format code / quotes in comments.)


It doesn't conflict since there is nothing to conflict with; the keyboard shortcuts for comments are unexistent and never were implemented.

  • Then let's call it a trap and not a conflict. The question remains the same. – Erwin Brandstetter Jul 10 '16 at 13:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .