Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

Custom hotkeys.

  • 3 replies
  • 1 has this problem
  • 35 views
  • Last reply by jscher2000

more options

I've just switched to Firefox from Chrome and need to change some of the hotkeys to a more familiar setup.

Also, another annoying thing I noticed, `cmd+b` opens up the Bookmarks sidebar, rather than bolden the text on a WYSIWYG editor on websites (i've installed FF v76.0.1 (64-bit) on MacOS).

Chosen solution

In most cases, you cannot disable or change build-in keyboard shortcuts.

Websites can intercept Command+b for their own purposes, but some use code that stopped working in Firefox 65-66 and haven't updated yet. There's a way to add custom site exceptions when needed. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste hack and pause while the list is filtered

(3) Double-click the dom.keyboardevent.keypress.hack.dispatch_non_printable_keys.addl preference to display an editing field, and paste in the host name, then press Enter/Return or click the blue check mark button to save the change.

Let's say the site is https://www.example.com/blog/edit.html

The part you enter is www.example.com

If you need to list multiple host names, separate them with commas, but no spaces.

(4) Some sites may require being added to dom.keyboardevent.keypress.hack.use_legacy_keycode_and_charcode.addl instead, or as well, and it works the same way

Any improvement?

More info on about:config: Configuration Editor for Firefox.

Read this answer in context 👍 1

All Replies (3)

more options

Chosen Solution

In most cases, you cannot disable or change build-in keyboard shortcuts.

Websites can intercept Command+b for their own purposes, but some use code that stopped working in Firefox 65-66 and haven't updated yet. There's a way to add custom site exceptions when needed. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste hack and pause while the list is filtered

(3) Double-click the dom.keyboardevent.keypress.hack.dispatch_non_printable_keys.addl preference to display an editing field, and paste in the host name, then press Enter/Return or click the blue check mark button to save the change.

Let's say the site is https://www.example.com/blog/edit.html

The part you enter is www.example.com

If you need to list multiple host names, separate them with commas, but no spaces.

(4) Some sites may require being added to dom.keyboardevent.keypress.hack.use_legacy_keycode_and_charcode.addl instead, or as well, and it works the same way

Any improvement?

More info on about:config: Configuration Editor for Firefox.

Helpful?

more options

jscher2000 said

In most cases, you cannot disable or change build-in keyboard shortcuts. Websites can intercept Command+b for their own purposes, but some use code that stopped working in Firefox 65-66 and haven't updated yet. There's a way to add custom site exceptions when needed. Here's how: (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk. (2) In the search box in the page, type or paste hack and pause while the list is filtered (3) Double-click the dom.keyboardevent.keypress.hack.dispatch_non_printable_keys.addl preference to display an editing field, and paste in the host name, then press Enter/Return or click the blue check mark button to save the change. Let's say the site is https://www.example.com/blog/edit.html The part you enter is www.example.com If you need to list multiple host names, separate them with commas, but no spaces. (4) Some sites may require being added to dom.keyboardevent.keypress.hack.use_legacy_keycode_and_charcode.addl instead, or as well, and it works the same way Any improvement? More info on about:config: Configuration Editor for Firefox.

Thanks for the quick reply, it solved the issue of 'cmd+b' undesirably opening the bookmarks sidebar. But this hardly seems to be a sustainable solution. Firefox must implement some alternative to the issue, preferably, custom hotkey settings.

Helpful?

more options

I hope that Firefox will someday include a new feature to modify built-in keyboard shortcuts. However, until then, most of them can be reassigned by websites and website authors know how to do that. Unfortunately, some sites use special code for older versions of Firefox and need to be updated. Please let the site know about the problem.

Feature suggestions tend to get lost here in the Emergency Room. Depending on your desired style of interaction, here are some other options:

Discussion Sites/Advocacy

Limited Length Comments

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.