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.

تلاش سپورٹ

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.

مزید سیکھیں

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

  • 6 جواب دیں
  • 1 میں یہ مسئلہ ہے
  • 3 دیکھیں
  • آخری جواب بذریعہ luckman212

more options

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.

تمام جوابات (6)

more options

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/

more options

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

more options

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

more options

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...

more options

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.

more options

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 کی جانب سے میں ترمیمکی گئ