API:FMX.Controls.Presentation.TPresentedControl.KeyUp
Delphi
procedure KeyUp(var AKey: Word; var AKeyChar: Char; AShift: TShiftState); override;
C++
virtual void __fastcall KeyUp(System::Word &AKey, System::WideChar &AKeyChar, System::Classes::TShiftState AShift);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | FMX.Controls.Presentation.pas FMX.Controls.Presentation.hpp |
FMX.Controls.Presentation | TPresentedControl |
Description
OnKeyUp event dispatcher.
FMX.Controls.Presentation.TPresentedControl.KeyUp inherits from FMX.Controls.TControl.KeyUp. All content below this line refers to FMX.Controls.TControl.KeyUp.
OnKeyUp event dispatcher.
KeyUp provides a response when a key is released while the control has keyboard focus. KeyUp calls the OnKeyUp event handler if one is assigned.
A control calls KeyUp in response to any key-up messages, decoding the message parameters into the key code, character code, and shift state. The control passes them in the Key, KeyChar, and Shift parameters, respectively:
Keyis the scan code of the released keyboard key.KeyCharis the character code of the released key.Shiftindicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when you release the previously pressed key with the control in focus.
Override the protected KeyUp method to provide other responses when a key is released while the control has keyboard input focus.