TShortCutEvent type
Return to Introduction 
The type of an OnShortCut event handler.

Unit
Classes  

Declaration
TShortCutEvent = procedure(var Msg: TWMKey; var Handled: Boolean) of object;  

Description
The TShortCutEvent type represents event handlers that respond to keystrokes before they enter the standard keystroke processing. These event handlers allow an application to bypass the standard keystroke processing for special shortcut keys.  
 
The Msg parameter represents the Windows keystroke message. The virtual key code is given by the CharCode field, and the KeyData field contains a set of flags that indicate the repeat count, scan code, extended-key flag, context code, previous key-state flag and transition-state flag. See the Windows documentation for details on these fields.  
 
The Handled parameter indicates whether the event handler processed the key. If Handled is set to True, then the application stops processing the keystroke. Otherwise (if Handled remains False) the application proceeds with normal keystroke processing.