Closed ZeroGit2015 closed 7 months ago
Hi,
Read these code comments for all the details about intercepting the browser accelerator keys :
If you just want to disable all browser accelerators then set this property in your app :
TWVBrowser.AreBrowserAcceleratorKeysEnabled := False;
I don't want to disable ALL accelerators. I want disable Ctrl + U only, for example, I use TWVBrowser.OnAcceleratorKeyPressed for disable Ctrl+U, It works in main browser window, but when i press Ctrl + F (internal search windows is shown) Ctrl + U works again and event TWVBrowser.OnAcceleratorKeyPressed doesn't trigger (when search window is opened).
I can reproduce this issue but I'm afraid it's an upstream WebView2 issue. You can report it in the feedback repository.
This should be fixed when Microsoft adds a complete keyboard and mouse filtering API.
Until then we can only try the low level keyboard hook workaround.
Until then we can only try the low level keyboard hook workaround. It works. Very thx!!!!
"OnAccelerationKeyPressed" event doesn't trigger when Search dialog window (Ctrl+F) was activated. Can i handle all acceleration keys except Ctrl+F?