搜尋 Mozilla 技術支援網站

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

Learn More

How Do I Disable All Shortcut Keys

more options

I have read the same named question that has been archived and have not found a solution to my problem there. I'm using Macro Express to define my own keystrokes which works fine outside of FF. One of the keystrokes I have defined is Ctrl-Shift-k. A suggestion was to disable Developer Tools via about:config -> devtools.enable = false, but when I tried to use my definition of Ctrl-Shift-k, instead FF told me "You activated a Developer Tools shortcut. If that was a mistake, you can close this Tab." when in fact I wanted to have it invoke my own definition.

How can I override this (and other) keystrokes when using FF?

I have read the same named question that has been archived and have not found a solution to my problem there. I'm using Macro Express to define my own keystrokes which works fine outside of FF. One of the keystrokes I have defined is Ctrl-Shift-k. A suggestion was to disable Developer Tools via about:config -> devtools.enable = false, but when I tried to use my definition of Ctrl-Shift-k, instead FF told me "You activated a Developer Tools shortcut. If that was a mistake, you can close this Tab." when in fact I wanted to have it invoke my own definition. How can I override this (and other) keystrokes when using FF?

被選擇的解決方法

You can disable the developer tools entirely via devtools.policy.disabled = false on the about:config page.

從原來的回覆中察看解決方案 👍 2

所有回覆 (3)

more options

Hi Bob, it's complicated.

Firefox doesn't have any built-in feature to reassign its own keyboard shortcuts. However, many of them can be intercepted by pages and repurposed. There are at least two general purpose add-ons that leverage this behavior by injecting your desired changes into pages:

Depending on what you want Ctrl+Shift+K to do, that might be a workaround for you.

BUT!! That said, a program like Macro Express should be intercepting key combinations before they ever reach Firefox, shouldn't it -- it works at the system level? Maybe it is not working as expected. Do the other keyboard shortcuts you set up in Macro Express work while Firefox is the active window or do they trigger Firefox actions?

more options

選擇的解決方法

You can disable the developer tools entirely via devtools.policy.disabled = false on the about:config page.

more options

cor-el: thanks for the suggestion. That solved the problem.