|
RAD Studio VCL Reference
|
Provides special processing when the user presses down on a key.
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
virtual __fastcall KeyDown(Word Key, TShiftState Shift);
Applications cannot call KeyDown. It is called automatically when the user presses a key, before the KeyPress method is called.
KeyDown generates an OnKeyDown event and then responds to the following keystrokes:
|
Keystroke |
Response |
|
UpArrow | |
|
Ctrl+UpArrow |
Move to the first row in the grid. Deselect any selected rows. |
|
DownArrow | |
|
Ctrl+DownArrow |
Move to the last row in the grid. Deselect any selected rows. |
|
PageUp |
Move up by the number of records shown in the grid. Deselect any selected rows. |
|
Ctrl+PageUp |
Move to the first row in the grid. Deselect any selected rows. |
|
PageDown |
Move down by the number of records shown in the grid. Deselect any selected rows. |
|
LeftArrow | |
|
Ctrl+LeftArrow |
Move to the first column in the current row. |
|
RightArrow | |
|
Ctrl+RightArrow |
Move to the last column in the current row. |
|
Home | |
|
Ctrl+Home |
Move to the first record in the dataset. Deselect any selected rows. |
|
End | |
|
Ctrl+End |
Move to the last record in the dataset. Deselect any selected rows. |
|
Tab |
Move to the next cell in the grid. |
|
Shift+Tab |
Move to the previous cell in the grid. |
|
Ctrl+Delete |
Delete the current selection. |
|
Insert a new row above the current one, and move to it. Deselect any selected rows. | |
|
Escape |
Cancel any unposted edits. Deselect any selected rows. |
|
F2 |
Put the grid in edit mode. |
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|