FMX.Controls.Presentation.TKeyInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TKeyInfo = record

C++

struct DECLSPEC_DRECORD TKeyInfo
{
public:
    System::Word Key;
    System::WideChar KeyChar;
    System::Classes::TShiftState Shift;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
FMX.Controls.Presentation.pas
FMX.Controls.Presentation.hpp
FMX.Controls.Presentation FMX.Controls.Presentation

Description

Record that TPresentedControl.KeyDown and TPresentedControl.KeyUp use to send a message about a key press event that a presentation layer can handle (PMKeyDown, PMKeyUp).

Key and KeyChar represent the pressed key, while Shift represents the combination of modifier keys that were pressed along with the main key. If the message handler successfully processes the pressed key, the message handler assigns Key = 0 and KeyChar = #0.

See Also