Change default keybindings (specifically, remove "⌘S")
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.
Všechny odpovědi (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.
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
Upravil uživatel luckman212 dne