TCustomHotKey = class(TWinControl)
class PASCALIMPLEMENTATION TCustomHotKey : public Vcl::Controls::TWinControl
TCustomHotKey is an abstract class that encapsulates behavior of an object that is used to set a shortcut property at run time. Accelerator key objects are used to perform an action quickly by enabling users to link the accelerator key to a combination of keystrokes that will execute the action. TCustomHotKey introduces properties to:
- Associate the accelerator key with keystrokes to perform an action.
- Select a key combination at design time.
- Invalidate specific modifier keys.
To change the key combination at run time hold down the ALT, CTRL, or SHIFT key or combinations of them and type a letter or number. The accelerator key property can then be assigned to the shortcut property of a menu item, for example.