Vcl.DBCtrls.TDBMemo.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.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBMemo |
Description
Overrides the inherited method to put the dataset in an editing state if the user types Del or Shift+Insert.
KeyDown first calls the inherited method, which calls the OnKeyDown event handler. KeyDown next attempts to put the dataset into an editing state when the user types Del or Shift+Insert. If the memo control is not linked to a dataset, KeyDown discards the keystroke. Derived classes can override KeyDown to handle additional key combinations, but the inherited method should always be called.