[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handles key down events for the control.
Source position: dbctrls.pp line 365
protected procedure TCustomDBListBox.KeyDown( |
var Key: Word; |
Shift: TShiftState |
); override; |
Key |
|
Virtual key code applied in the method. |
Shift |
|
Modifier for the key code applied in the method. |
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:
|
Reset - checks that link is active, calls the OnDataChange event handler then sets IsModified to False. |
|
|
Edit - if the field can be modified, performs inherited Edit and shows editing status. |
|
|
Signals the OnKeyDown event handler (when assigned). |