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
Ahhh .. it sounds like the WB Control might be running it's own sub-message queue.If that is the case, then it's stealing away the main O/S message queue (like the DataWindow does) and after processing the message may / may not "chain" the message back on to the main O/S message queue so that other controls can see it.
This sounds like we might need to have to ask the Engineering team for an enhancement for this control (as it's really the WebVew2 engine under-the-hood) that needs further message handling capabilities. Just my guess.
Regards .. Chris