How do I Identify Key Down, Key Up, Key Press events in FormShortCut of a Form.
Posted on 2008-10-02
I want to do some job in key down of one of the Arrow Keys and some other job in key up of that same Arrow Key. FormShortCut is firing two times for a single press of a key. I think it is firing once for Key Down and firing once for Key Up. How can I Identify that Key is Down or Up or Pressed from FormShortCut of MainForm. The TWMKey structure is as follows, which is the one of the parameters of FormShortCut,
TWMKey = packed record
Which variable tells that which key event is fired.