Vcl.DBCGrids.TDBCtrlGrid.KeyDown
Delphi
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
C++
DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.DbCGrids.pas Vcl.DBCGrids.hpp |
Vcl.DBCGrids | TDBCtrlGrid |
Description
Performs special processing when a key is pressed.
After calling the OnKeyDown event handler, KeyDown translates each combination of the Key and Shift parameters into a logical key code and calls the DoKey method to perform the appropriate action.
KeyDown performs the following translations:
Key and Shift values | Key code |
---|---|
LeftArrow |
gkLeft |
RightArrow |
gkRight |
UpArrow |
gkUp |
DownArrow |
gkDown |
PageUp |
gkPageUp |
PageDown |
gkPageDown |
Home |
gkHome |
End |
gkEnd |
Return |
gkEditMode |
F2 |
gkEditMode |
Insert |
gkAppend |
Ctrl+Insert |
gkInsert |
Ctrl+Delete |
gkDelete |
Escape |
gkCancel |
All other keys |
gkNull |
See Also