FMX.Types.IControl.KeyUp
Delphi
procedure KeyUp(var Key: Word; var KeyChar: WideChar; Shift: TShiftState);
C++
virtual void __fastcall KeyUp(System::Word &Key, System::WideChar &KeyChar, System::Classes::TShiftState Shift) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | IControl |
Description
Declares the method providing a response when a key is released while the control has keyboard focus.
Implement KeyUp to provide a certain behavior when a key is released while the control has keyboard focus.
The KeyUp parameters are:
Key
is the scan code of the released keyboard key.KeyChar
is the character code of the released key.Shift
indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the previously pressed key is released with the control in focus.
TControl implements this method as an OnKeyUp event dispatcher.