TCustomDBListBox.KeyDown procedure
Handles key down events for the control.
Declaration
procedure KeyDown(var Key: Word; Shift: TShiftState); overrideArguments
Key | Virtual key code applied in the method. |
Shift | Modifier for the key code applied in the method. |
Description
KeyDown is an overridden method in
TCustomDBListBox
which applies the specified virtual key code and modifier to the control.
KeyDown calls the inherited method, and ensures that the linked dataset is
updated as needed for the key down event. The following actions are performed
for the corresponding keys:
- VK_ESCAPE
- Calls the
TFieldDataLink.Resetmethod to cancel the edit operation. Key is set to VK_UNKNOWN. - VK_DOWN, VK_UP
- Calls the
TFieldDataLink.Editmethod after changing the selected item in the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
