Sign in Join
FPDoc Onlineexperiment

TCustomButton.ControlKeyDown procedure

Member of TCustomButtonprotectedIn unit StdCtrls

Handles key down events for special navigation keys used in a control.

Declaration

pascal
procedure ControlKeyDown(var Key: Word; Shift: TShiftState); override

Arguments

Key

Virtual key code examined in the method.

Shift

Shift, Ctrl, or Alt modifier for the key.

Description

ControlKeyDown is a method used to detect and handle key down events for navigation keys used in the control. ControlKeyDown calls the corresponding method in TApplication to determine the actions needed for the key and modifier. The application handles Tab and cursor keys which may affect control or form focus.

ControlKeyDown is called from the DoRemainingKeyDown method to handle keys not otherwise handled by a control or its parent forms.

This description is the one of Controls.TWinControl.ControlKeyDown.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.