為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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 於 修改