Vcl.DBCtrls.TDBRichEdit.KeyDown

From RAD Studio API Documentation
Jump to: navigation, search

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 TDBRichEdit

Description

Supplements the inherited method to drive the dataset into edit mode when the user presses 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. Derived classes can override KeyDown to handle additional key combinations, but the inherited method should always be called.

Note: Applications cannot call this protected method directly. It is called automatically in response to Windows events.

See Also