FMX.Controls3D.TControl3D.KeyDown

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure KeyDown(var Key: Word; var KeyChar: System.WideChar; Shift: TShiftState); virtual;

C++

virtual void __fastcall KeyDown(System::Word &Key, System::WideChar &KeyChar, System::Classes::TShiftState Shift);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Controls3D.pas
FMX.Controls3D.hpp
FMX.Controls3D TControl3D

Description

OnKeyDown event dispatcher.

Key specifies the key on the keyboard.

KeyChar specifies the character code.

Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the specified key was pressed with the control in focus.

KeyDown is automatically called each time keys are pressed with the control in focus.

Override the protected KeyDown method to provide other responses when a key is down while the control has keyboard focus.

See Also