We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 6 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 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于修改