Page 1 of 1

Avoid F12 auto open Devtools

Posted: Tue Sep 24, 2024 5:04 pm
by thefunkyjoint
Now that we are in Chrome Runtime Mode, pressing F12 automatically opens Devtools. Is there a way to avoid this ? :roll:

Re: Avoid F12 auto open Devtools

Posted: Wed Sep 25, 2024 3:56 am
by sodlf159
Please check the patch notes.
Runtime mode can be turned off.

Re: Avoid F12 auto open Devtools

Posted: Wed Sep 25, 2024 8:01 am
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

Re: Avoid F12 auto open Devtools

Posted: Wed Sep 25, 2024 11:32 am
by thefunkyjoint
Nice, thank you ! :D