Hi,
I like to prevent the F12 key from opening devtools in my application. I looked into the acceleratorkeypressed event, which fires when pressing F12 (virtualkey 123). There is, however, no option to stop processing it (as far as I can see). According to https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.winforms.webview2.acceleratorkeypressed?view=webview2-dotnet-1.0.705.50 there should be a 'handled' property that must be set to true. Unfortunately, that property doesn't exist within powerbuilder. I tried setting Message.Processed to TRUE and Mesaage.ReturnValue to 1. That's not working.
So, is it possible to prevent opening the devtools window on pressing F12?
Kind regards,
Aart Onkenhout