搜索 | 用户支持

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

Learn More

Disabling the F12 shortcut

  • 6 个回答
  • 4 人有此问题
  • 606 次查看
  • 最后回复者为 ElStellino

more options

I know already that the solution is to install an addon, but I try to limit the addons because I want my Firefox clean.

F12 as you know opens the developers' tool. I want to disable that: I am not (like 95% or more of Mozilla users) a developer, and I will never use it. Moreover, a single keystroke shortcut for something similar is such a bad idea. Well, no offense but it's seriously an idiotic idea. You can't imagine how many times I press it in a day instead of Backspace or F11.

Can I delete all the devtool.* entries in about:config? It will never work again on my computer, but who cares?

Thanks.

I know already that the solution is to install an addon, but I try to limit the addons because I want my Firefox clean. F12 as you know opens the developers' tool. I want to disable that: I am not (like 95% or more of Mozilla users) a developer, and I will never use it. Moreover, a single keystroke shortcut for something similar is such a bad idea. Well, no offense but it's seriously an idiotic idea. You can't imagine how many times I press it in a day instead of Backspace or F11. Can I delete all the devtool.* entries in about:config? It will never work again on my computer, but who cares? Thanks.

被采纳的解决方案

Indeed, I didn't notice your first sentence, sorry…

No, you can not remove devtools.* entries in about:config. If you meant to modify prefs.js, actually this file stores only changed prefs (different from default values), not all prefs inf about:config. And even you could remove devtools.* lines from about:config, it is just settings, not the behaviour of core features like the developer tools panel and its hot key.

If you have technical skills, you could try to find how KeyConfig works (from the source code) and maybe reproduce yourself the corresponding changes in Firefox. (I have no idea if it is possible, but why not?)

定位到答案原位置 👍 1

所有回复 (6)

more options

You can use the KeyConfig add-on to remap the F12 key.

more options

Banban said

You can use the KeyConfig add-on to remap the F12 key.

Thanks, but as I wrote in my first sentence, "I know already that the solution is to install an addon, but I try to limit the addons because I want my Firefox clean."

The main question was, can I delete all the devtools.* entries in about:config? It will never happen I use them in a thousand years' time. Or, can I change one of them to avoid the F12 behaviour?

more options

选择的解决方案

Indeed, I didn't notice your first sentence, sorry…

No, you can not remove devtools.* entries in about:config. If you meant to modify prefs.js, actually this file stores only changed prefs (different from default values), not all prefs inf about:config. And even you could remove devtools.* lines from about:config, it is just settings, not the behaviour of core features like the developer tools panel and its hot key.

If you have technical skills, you could try to find how KeyConfig works (from the source code) and maybe reproduce yourself the corresponding changes in Firefox. (I have no idea if it is possible, but why not?)

more options

Thanks Banban for your quick response.

I have a few technical skills (not many though) and I'll try to have a look (maybe). For now I'll just use an addon, as you suggested. I found one that does exactly that, disabling the F12 key, and nothing else, just killing it and no other options: I saved it a couple of days ago in the favourites and I'll give it a try.

I just realized that I am barking at Firefox, but apparently this F12 hotkey is also used in Chrome, and.. Internet Explorer! It is one of those useless keys for the most, perhaps I should make it die in the same way I did with the Ins key: I'll take it off with a flat screwdriver, and bin it. Like Ins (and Pause, Scroll lock, Numlock that is always on anyway) I don't remember pressing F12 ever, apart from when I pressed it by mistake...

more options

OK, good luck if you try that. Thanks for your feedback.