[Lazarus] How to detect that the Alt-key is released?

Jürgen Hestermann juergen.hestermann at gmx.de
Sun Aug 2 12:52:13 CEST 2015


According to http://wiki.lazarus.freepascal.org/LCL_Key_Handling
the "KeyUp" event should be triggered when the Alt-key is released.

But how do I tell this procedure that I want to check for the Alt-key?
The "key" parameter is of type word.
What is the representation of the Alt-key here?
vk_alt does not exist.

And how about the "Shift" parameter?
It would tell me whether Alt is currently pressed or not
but not whether it has been released.

A bit confusing....
Anybody knows how it works?





More information about the Lazarus mailing list