FMX.Colors.TColorPanel.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.Colors.pas
FMX.Colors.hpp
FMX.Colors TColorPanel

Description

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

FMX.Colors.TColorPanel.OnKeyDown inherits from FMX.Controls.TControl.OnKeyDown. All content below this line refers to FMX.Controls.TControl.OnKeyDown.

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

OnKeyDown is called from KeyDown methods of GUI components, for example, of controls and forms.

Write an event handler for OnKeyDown to specify what happens when a control or a form has the input focus and a key is pressed.

Warning: When using a virtual (on-screen) keyboard on Android devices, do not rely on KeyEvents to detect pressed keys, especially text characters. However, KeyEvents detects keys such as return and enter but it does not delete, depending on the target application. Be aware that other software input methods may never send KeyEvents regardless of the version.

See Also