FMX.TreeView.TCustomTreeView.KeyUp
Delphi
procedure KeyUp(var Key: Word; var KeyChar: System.WideChar; Shift: TShiftState); override;
C++
virtual void __fastcall KeyUp(System::Word &Key, System::WideChar &KeyChar, System::Classes::TShiftState Shift);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | FMX.TreeView.pas FMX.TreeView.hpp |
FMX.TreeView | TCustomTreeView |
Description
OnKeyUp event dispatcher.
FMX.TreeView.TCustomTreeView.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 a keyboard input focus.
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.