Fired if an accelerator key is pressed.
Syntax
Private Sub object_AcceleratorKeyPressed(KeyState As oWebView2AccKeyState, IsExtendedKey As Long, WasKeyDown As Long, IsKeyReleased As Long, IsMenuKeyDown As Long, RepeatCount As Long, ScanCode As Long, IsHandled As Long)
The AcceleratorKeyPressed event syntax has these parts:
Element | Description |
Object | The object placeholder represents an OrdoWebView2 control |
KeyState | oWebView2AccKeyState, State of the accelerator key
pressed Key_DOWN = 0 Key_UP = 1 SysKey_DOWN = 2 SysKey_UP = 3 |
IsExtendedKey | Long . TRUE if the key is an extended key |
WasKeyDown | Long. TRUE if the key was down |
IsKeyReleased | Long. TRUE if the is just released |
IsMenuKeyDown | Long. TRUE if the key down is a menu key |
RepeatCount | Long. Reapeat count |
ScanCode | Long. the scandode of the pressed key |
IsHandled | Long. If set to true then this prevents the Control from performing the default action for this accelerator key. Otherwise the Control will perform the default action for the accelerator key. |