Vcl.Outline.TCustomOutline.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 |
protected | Vcl.Outline.pas Vcl.Outline.hpp |
Vcl.Outline | TCustomOutline |
Description
Provides special processing when the user presses a key.
KeyDown is called automatically when the user presses a key. After calling the inherited method, which generates an OnKeyDown event, KeyDown processes the following keystrokes:
Key | Behavior |
---|---|
Home |
Selects the first node in the outline. |
End |
Selects the last node in the outline. |
Return |
Toggles the selected node between its collapsed and expanded states. |
Ctrl+* |
Fully expands the outline. |
Right arrow |
Selects the first child of the selected node. |
Left arrow |
Selects the parent of the selected node. |
Ctrl+Up arrow |
Selects the node following the selected node. |
Ctrl+Down arrow |
Selects the node preceding the selected node. |