
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Avoid F12 auto open Devtools
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Avoid F12 auto open Devtools
Now that we are in Chrome Runtime Mode, pressing F12 automatically opens Devtools. Is there a way to avoid this ? 

Re: Avoid F12 auto open Devtools
Please check the patch notes.
Runtime mode can be turned off.
Runtime mode can be turned off.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Avoid F12 auto open Devtools
Use the TChromiumCore.OnChromeCommand event and set aResult to True if command_id is IDC_DEV_TOOLS_TOGGLE
https://github.com/salvadordf/CEF4Delphi/blob/f062dad2fd5873dd3a04f323a3d68c18b813c2c8/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L561
https://github.com/salvadordf/CEF4Delphi/blob/f062dad2fd5873dd3a04f323a3d68c18b813c2c8/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L561
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Avoid F12 auto open Devtools
Nice, thank you ! 
