AcceleratorKeyPress Event  
 

The AcceleratorKeyPress event occurs when an accelerator key is pressed while the browser has focus.

Syntax

Sub object_AcceleratorKeyPress ([Index As Integer,] ByVal KeyCode As Integer, Handled As Boolean )

Remarks

This event is raised when the user presses an accelerator key combination such as the arrow keys, Page Up and Page Down, Insert, Delete, or other keys that the embedded browser normally handles. The KeyCode value is the virtual key code. The event gives your application a chance to intercept these keystrokes before they are processed by the browser. This is especially useful when you want to provide custom navigation, prevent certain keys from being used, or integrate the control with application-level keyboard shortcuts. To prevent the default behavior being taken by the browser, set the Handled parameter to True from within this event.

See Also