Vcl.Controls.TKeyEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TKeyEvent = procedure(Sender: TObject; var Key: Word;
Shift: TShiftState) of object;

C++

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

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Controls.pas
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