TWidgetSet.GetKeyState function
The status of a virtual key.
Declaration
function GetKeyState(nVirtKey: Integer): SmallInt; virtualArguments
nVirtKey | The virtual key code. |
Function result
The key state flags.
Description
The result reflects the message processing state, at the time of the last seen key message.
A key can be up, down or toggled.
The high order bit of the result is the up/down state, 1 for down.
The low order bit of the result is the toggled state, applicable to e.g. the caps-lock key. The bit is set if the key is toggled (active).
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
