Vcl.ColorGrd.TColorGrid.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.ColorGrd.pas Vcl.ColorGrd.hpp |
Vcl.ColorGrd | TColorGrid |
Description
Responds when the user presses a key.
KeyDown handles keyboard navigation among the colors in the grid. Press the F key or the B key to set the currently selected color as the foreground color or background color, respectively. Press the arrow keys, home and insert keys to navigate by keyboard through the colors in the grid. The currently selected color is bordered by a rectangle. Press Enter to reset the foreground and background to the first color in the grid.