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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Avoid F12 auto open Devtools

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Avoid F12 auto open Devtools

Post by thefunkyjoint »

Now that we are in Chrome Runtime Mode, pressing F12 automatically opens Devtools. Is there a way to avoid this ? :roll:
sodlf159
Posts: 90
Joined: Thu Nov 09, 2023 1:55 pm

Re: Avoid F12 auto open Devtools

Post by sodlf159 »

Please check the patch notes.
Runtime mode can be turned off.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Avoid F12 auto open Devtools

Post by salvadordf »

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
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Avoid F12 auto open Devtools

Post by thefunkyjoint »

Nice, thank you ! :D
Post Reply