Description
Occurs when an accelerator key or key combination is pressed or released while the WebBrowser control gets the focus. A key is considered as an accelerator key if it meets any of the following conditions:
-
The Ctrl key or Alt key is being pressed on.
-
The pressed key is not mapped to a character.
Only a few keys are never considered as accelerators, such as the Shift key, but the Escape key is always considered as an accelerator.
Syntax
AcceleratorKeyPressed (integer kind, integer virtualKey, integer lParam)
Event ID
Arguments
Argument |
Description |
---|---|
Kind |
The type of key event that triggers this event. The values are: 0 -- WM_KEYDOWN in Window message 1 -- WM_KEYUP in Window message 2 -- WM_SYSKEYDOWN in Window message 3 -- WM_SYSKEYUP in Window message |
VirtualKey |
The virtual key that is pressed or released. |
lParam |
The parameter of the key. |
Return Values
None
See also