Sign in Join
FPDoc Onlineexperiment

TControl.DoCallKeyEventHandler procedure

Member of TControlprotectedIn unit Controls

Passes key events for the specified type to the handlers added to the control.

Declaration

pascal
procedure DoCallKeyEventHandler(HandlerType: TControlHandlerType; 
 var Key: Word; Shift: TShiftState)

Description

DoCallKeyEventHandler iterates over the handler routines using the type specified in HandlerType. The routines are cast to the TKeyEvent type used to implement the handler and receives the arguments specified in Key and Shift. The current class instance is used as the Sender for the event notification.

DoCallKeyEventHandler is called from the KeyDown method in descendent classes like TWinControl.

See also

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