Contents
- Index
- Previous
- Next
OnKeyDown event
Applies to
TProfGrid component
Declaration
property OnKeyDown: TKeyEvent;
Description
Occurs when a user presses any key while the grid has focus.
Use the OnKeyDown event handler to specify special processing to occur when a key is pressed. The OnKeyDown handler can respond to all keyboard keys, including function keys and keys combined with the Shift, Alt, and Ctrl keys, and pressed mouse buttons.
The Key parameter is the key on the keyboard. For non-alphanumeric keys, use WinAPI virtual key codes to determine the key pressed.
The Shift parameter indicates whether the Shift, Alt, or Ctrl keys are combined with the keystroke.