Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Disabling the F12 shortcut

  • 6 Antworten
  • 4 haben dieses Problem
  • 2 Aufrufe
  • Letzte Antwort von 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.

Ausgewählte Lösung

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?)

Diese Antwort im Kontext lesen 👍 1

Alle Antworten (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

Ausgewählte Lösung

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.