This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Change default keybindings (specifically, remove "⌘S")

  • 6 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 6 views
  • Last reply by luckman212

I'm using FF 67.0 (as well as 69.0a1 Nightly) on macOS.

Now that we can finally change keyboard shortcuts for Extensions (yay!) I would like to use `⌘S` as one of my key bindings. Problem is, that is already mapped to "Save Page As..." — a menu item I hardly ever need.

Is there any way (current or planned) that users can change keybindings for built in native commands? This would be especially useful for the many switchers coming over from Chrome after the adblockalypse.

I'm using FF 67.0 (as well as 69.0a1 Nightly) on macOS. Now that we can finally change keyboard shortcuts for Extensions (yay!) I would like to use `⌘S` as one of my key bindings. Problem is, that is already mapped to "Save Page As..." — a menu item I hardly ever need. Is there any way (current or planned) that users can change keybindings for built in native commands? This would be especially useful for the many switchers coming over from Chrome after the adblockalypse.

All Replies (6)

Hi luckman212, what would you like Command+s to do?

Firefox doesn't have a built-in feature to re-map browser keyboard shortcuts. Web pages can intercept and repurpose many key combinations, and extensions like Saka Key take advantage of that to let you remap them to various other functions. I don't know whether it works for this one is particular.

https://addons.mozilla.org/firefox/addon/saka-key/

I would like to use ⌘S as a trigger key for one of my extensions (Bitwarden).

You can modify extension's keys via the about:addons page. Click the cogwheel button and look for Manage Extension Shortcuts.

That's not what I'm asking. I know you can set the keys- if you read the top post you'll see the question is about changing default keybindings, since ⌘S is already in use by FF's default "Save Page As..." command. And this is the key I want to use for my extension...

As far as I know, extensions cannot re-purpose built-in keyboard shortcuts using the commands property in manifest.json or the commands API. It may be under consideration for a future version, but for now, the only known workaround is a content script.

I found a solution, but it's not easy for most users.

I patched browser.dtd and broswer.xul and edited the keymappings directly, in accordance with the info I found here: https://github.com/nilcons/firefox-hacks#binary-hacking-automated

Using this method, I was able to remove the ⌘S shortcut and assign it to Bitwarden. I also removed a few other keyboard shortcuts that I didn't like: ⌘B, ⌘U, ⌘I, and ⌘D

luckman212 மூலமாக திருத்தப்பட்டது