FMX.Memo.Style.TStyledMemo.KeyDown
Delphi
procedure KeyDown(var Key: Word; var KeyChar: System.WideChar; Shift: TShiftState); override;
C++
virtual void __fastcall KeyDown(System::Word &Key, System::WideChar &KeyChar, System::Classes::TShiftState Shift);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Memo.Style.pas FMX.Memo.Style.hpp |
FMX.Memo.Style | TStyledMemo |
Description
OnKeyDown event dispatcher.
KeyDown is automatically called when a key is pressed and the TMemo control has focus.
Key
specifies the key that is pressed. KeyChar
specifies the character code. Shift
indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the specified key was pressed, having the control in focus.
The text in the TMemo control is changed according to the key pressed.