Search code examples
firefoxbookmarks

Disable ctrl-b keyboard shortcut in Firefox?


As a tmux user, there is a lot of Ctrl+b going on. Also a lot of Firefox.

It's safe to say I never, ever want to see the book mark vertical bar. No interest. Never had any in 20 years of computer use.

Is there any way to disable Ctrl+b in Firefox without using a plug-in?


Solution

  • I've been able to disable the Ctrl+B shortcut by using the Shortkeys extension.

    Its configuration can be a little cumbersome, so here's a quick guide:

    • In the extensions page (about:addons), click the ... menu next to the Shortkeys entry, and select "Preferences"
    • Add a new shortcut:
      • In the "Shortcut" column, type "Ctrl+B".
      • In the "Label" column, enter something like "Disable bookmarks sidebar".
      • In the "Behavior" column, select the "Do nothing" entry
    • Don’t foget to click the Save shortcuts button at the bottom of the page!

    Note: This only works in the context of a web page. The default Firefox action will still execute if you press Ctrl+B while the cursor is e.g. in the URL bar or the search bar. But for me it's a great improvement already!