Vcl.Grids.TCustomGrid.KeyPress
Delphi
procedure KeyPress(var Key: Char); override;
C++
DYNAMIC void __fastcall KeyPress(System::WideChar &Key);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
Description
Provides special processing when the user presses a key.
KeyPress is called automatically after the KeyDown method, but before the user releases the key.
After generating an OnKeyPress event, KeyPress toggles the EditorMode property when the user presses the Enter key.