JVCL Help:TJvKeyInfo.KeyState

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Provides information about the state of arbitrary keys.


Pascal

 propertyKeyState [const VirtualKey: Cardinal]: Boolean;


Parameters

Parameters Description
VirtualKey The key you want to read or write.


Description

Use KeyState to read or write the current state of a key on the keyboard. If KeyState returns True, the key is pressed. If it returns False, the key is unpressed.
For keys that toggles when pressed, use the CapsLock, ScrollLock and NumLock properties instead.


See Also

TJvKeyInfo.CapsLock, TJvKeyInfo.NumLock, TJvKeyInfo.ScrollLock


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page