问题
Pressing Ctrl+Shift+C in Firefox opens the developer tools and activates the "Pick element" tool.
I often mistakenly use this shortcut when I want to copy something (mixing it up with the shortcut to copy text in terminals).
It's really annoying since
- it doesn't copy the text
- it opens the developer tools
- I can't even close the developer tools by using this shortcut again, I need to reach for the mouse to close it
One solution appeared to be the Firefox "customizable shortcuts" extensions, but it has been discontinued.
Any other idea?
回答1:
Install Menu Wizard, click on Keyboard shortcuts
, find key_inspector
, delete the shortcut.
Install details here
回答2:
You can't. Unfortunately, even if you disable them in the about:config
it doesn't actually disable them.
There may be plugins that do it but on vanilla firefox it is not possible.
回答3:
Seeing how Firefox's architecture has seen an overhaul during the transition to Quantum and WebExtensions, it is no longer possible to disable built in shortcuts using an extension like "Menu Wizard" or "customizable shortcuts".
If you know how to compile firefox from source, you can still do it by modifying the source code. Download the source, extract it and edit:
path-to-ff-source-dir/devtools/startup/locales/en-US/key-shortcuts.properties
and change
inspector.commandkey=C
to
inspector.commandkey=VK_F1
If you are not familiar with how to build firefox from source, you can follow the instructions outlined here.
The source code for the latest firefox can be found here:
https://archive.mozilla.org/pub/firefox/releases/ (don't leave out the / at the end or it will give you a 404 error).
Just pick a release (64.02 for example) and click on source:
https://archive.mozilla.org/pub/firefox/releases/64.0.2/source/
来源:https://stackoverflow.com/questions/36007119/how-to-disable-ctrl-shift-c-shortcut-in-firefox