Vcl.Controls.TKeyEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

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

Properties

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

Description

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