FMX.Forms.TCommonCustomForm.OnKeyDown
Delphi
property OnKeyDown: TKeyEvent read FOnKeyDown write FOnKeyDown;
C++
__property Fmx::Types::TKeyEvent OnKeyDown = {read=FOnKeyDown, write=FOnKeyDown};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TCommonCustomForm |
Description
Occurs when a key is pressed while the form has focus.
OnKeyDown also occurs when KeyDown is called.
Write an event handler for OnKeyDown to specify what happens when the form is in focus and a key is pressed.