FMX.Forms.TForm.OnKeyDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnKeyDown: TKeyEvent read FOnKeyDown write FOnKeyDown;

C++

__property OnKeyDown;

Properties

Type Visibility Source Unit Parent
event published
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TForm

Description

Occurs when a key is pressed while the form has focus.

FMX.Forms.TForm.OnKeyDown inherits from FMX.Forms.TCommonCustomForm.OnKeyDown. All content below this line refers to FMX.Forms.TCommonCustomForm.OnKeyDown.

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.

See Also