[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handles key down events in the control.
Source position: dbctrls.pp line 193
protected procedure TDBEdit.KeyDown( |
var Key: Word; |
Shift: TShiftState |
); override; |
Key |
|
Virtual key code examined and applied in the method. |
Shift |
|
Key modifier examined and applied in the method. |
KeyDown is an overridden method in TDBEdit. KeyDown calls the inherited method, and ensures that the specified virtual key code and modifier are applied in the manner needed for the data-aware control. KeyDown handles the following virtual key codes:
For the macOS (Darwin) platform, additional virtual key codes are detected (and discarded) if the contents of the field in the linked dataset cannot be modified. These keys include:
For these macOS-specific keys, the value in Key is set to 0 if the field cannot be modified.
Modified in LCL version 3.6 to handle additional data keys on the macOS (Darwin) platform.
|
Checks whether the link is active, calls the OnDataChange event handler then sets IsModified to False. |
|
|
True if the linked field is being edited. |
|
|
The Field to which the datalink is attached. |
|
|
Signals OnKeyDown event handlers (when assigned). |
Version 4.0 | Generated 2025-05-03 | Home |