- Aart Onkenhout
- PowerBuilder
- Tuesday, 26 March 2024 10:00 AM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.