Skip to main content
Table of Contents

TTMSFNCTouchKeyboard.PostKey Method

Posts a synthetic key event to the currently focused control or window.

API unit family: TMSFNCTouchKeyboard Declaring type: TTMSFNCTouchKeyboard Inherited from: TTMSFNCCustomTouchKeyboard

Syntax

FMX.TMSFNCTouchKeyboard.hppPascalC++
procedure PostKey(AKey: Word; const AShift: TShiftState; AExtendedKeyBD: Boolean; AIndex: Integer);
void __fastcall PostKey(System::Word AKey, const System::Classes::TShiftState AShift, bool AExtendedKeyBD, int AIndex);

Parameters

Name Description
AKey Virtual key code to post.
AShift Modifier keys active at the time of the post.
AExtendedKeyBD When True, the extended-key flag is set in the posted event.
AIndex Zero-based index of the key item in the collection.