[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.ControlKeyDown

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

Declaration

Source position: controls.pp line 2278

protected procedure TWinControl.ControlKeyDown(

  var Key: Word;

  Shift: TShiftState

); virtual;

Arguments

Key

  

Numeric 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.

See also

TWinControl.DoRemainingKeyDown

  

Handles key down messages which are not handled by the widget.

TApplication.ControlKeyDown

  

Handles KeyDown events in a Control, e.g. handles navigation keys.

TApplication.DoTabKey

  

Uses the Tab key for navigation, if enabled.

TApplication.DoArrowKey

  

Uses arrow keys for navigation, if enabled.


Version 3.2 Generated 2024-02-25 Home