FMX.Controls.TControl.OnKeyUp

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnKeyUp: TKeyEvent read FOnKeyUp write FOnKeyUp;

C++

__property Fmx::Types::TKeyEvent OnKeyUp = {read=FOnKeyUp, write=FOnKeyUp};

Properties

Type Visibility Source Unit Parent
event public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

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

OnKeyUp also occurs when KeyUp is called.

Write an event handler for OnKeyUp to specify what happens when the control is in focus and a key is released.

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