From RAD Studio API Documentation
Jump to: navigation, search


typedef void __fastcall (__closure *TKeyEvent)(System::TObject* Sender, System::Word &Key, System::Classes::TShiftState Shift);


Type Visibility Source Unit Parent
typedef public Vcl.Controls.hpp Vcl.Controls Vcl.Controls


TKeyEvent represents the method type used for key notification events.

TKeyEvent is a method type used for key notification events such as OnKeyUp or OnKeyDown.

The Key parameter is the key on the keyboard. For non-alphanumeric keys, use virtual key codes to determine the key pressed. For more information, see Virtual Key codes.

The Shift parameter indicates whether the Shift, Alt, or Ctrl keys are combined with the keystroke.

See Also