Forum Discussion
zghadyali
Microsoft
Jan 05, 2021Turn off F12 opening DevTools with new Edge setting
Hello Insiders! We've heard a lot of feedback in the Microsoft Edge DevTools from customers who accidentally press F12 and didn't intend to launch or use the DevTools. To help solve this proble...
MS2000
Aug 29, 2024Copper Contributor
Hi,
Great!
Is there a policy to apply this setting automatically to many users ?
Thx
Regards,
MS
Great!
Is there a policy to apply this setting automatically to many users ?
Thx
Regards,
MS
zghadyali
Microsoft
Aug 29, 2024MS2000 Hello! We don't have a policy for specifically turning off the `F12` keyboard shortcut for large groups of users but we do have one for whether or not the DevTools in Microsoft Edge should be enabled. See DeveloperToolsAvailability for more info. Cheers!
- MS2000Sep 03, 2024Copper Contributor
zghadyali Hi,
Thank you for your response.
I already know the policy to disable DevTools, because I apply it. I have to disable DevTools because of a "special" web app that we have, wich uses the F12 fonction to open a menu. That's the reason why I am trying to find a way to disable F12 for DevTools, because instead of opening the menu, F12 opens DevTools, And I have to disable it to thousands of computers. I cannot ask for change on the "special" web app because I know they will not change that behaviour (end of support very soon).
So I disabled DevTools, but it's difficult then to debug when I need to open DevTools on a particular computer when a random bug appears. I am experiencing that rigth now, a bug that appears on random machines, and I cannot use DevTools.
Do you know if there is a way to disable the F12 shortcut in another way than using a policy ? Maybe setting registry values ?
Best regards,
MS
- MS2000Sep 10, 2024Copper Contributor
I reply to my last question.
Actually, there is a policy that can be used to disable MSEdge shortcuts : https://learn.microsoft.com/en-us/deployedge/edge-learnmore-configurable-edge-commands
I can use it to disable the "dev_tools_toggle" command by pressing F12 key.
Hope this may help someone, one day.
Regards.
MS