MacOS: Keyboard Shortcut to Toggle Bookmarks Bar in Firefox
A few weeks ago, after Firefox Quantum came out, I decided to try making Firefox my daily browser, instead of Chrome.
But something was bothering me to no end. I could not find a keyboard shortcut to toggle the visibility of the bookmarks toolbar.
I take a lot of screenshots throughout the day, and share them within my company. I don’t really want my bookmarks bar taking up space in the screenshot, but I do sometimes need it to find actual bookmarks.
Cmd-Shift-B toggles the bookmarks bar visibility. In Firefox, that combo shows your history.
The primary fix is to use the Mac operating system to set an App-specific keyboard shortcut. This is bananas, and I’ve never done it before.
Here’s how to do it:
System Preferences > Keyboard. From the options on the top bar (Keyboard, Text, Shortcuts, etc) select
In the left-hand sidebar, choose
+ icon to add a new shortcut, and select
Firefox.app from the list of applications.
Enter this string exactly where in the Menu Title box:
Cmd-Shift-Y as my shortcut - it took a few attempts to find something that didn’t conflict with existing OS/Firefox shortcuts.
(And yes, I tried to unmap
Cmd-Shift-B, to free it up for this shortcut, and could not. If you figure out how, please let me know.)
Sometimes the keyboard shortcut doesn’t work. It seems like Firefox “forgets” what it’s supposed to do.
If that happens, I’m able to set things back as they should be by toggling the bookmarks bar manually, once, and then the shortcut works again.
(This setting lives in
View > Toolbars > Bookmarks Toolbar)