OnKeyPress
Interface AntView
Type: Event
Parameters: Short Key
This event is never raised.
The WebView2 control does not expose an OnKeyPress event. The reason the event is listed, is because our framework exposed a number of default events.
This event is hidden in AntView version 2.0 as the control should not expose what isn't there.
We recommend to remove any instances where you have tried to use this event before upgrading.
For a number of selected Accelerator keys you can use the OnAcceleratorKeyPressed event instead.
If you want to catch another key with the OnKeyPress event then that is best done with javascript within the html document.
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024