Sign in Join
FPDoc Onlineexperiment

TWinControl.ControlKeyDown procedure

Member of TWinControlprotectedIn unit Controls

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

Declaration

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

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.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.