Recent

Author Topic: application.AddOnKeyDownHandler What do i do for OnKeyUp?  (Read 2738 times)

DanNineOne

  • New Member
  • *
  • Posts: 46
application.AddOnKeyDownHandler What do i do for OnKeyUp?
« on: April 04, 2009, 10:25:34 pm »
I am using this code to add a key down handler:
Code: [Select]
application.AddOnKeyDownHandler(@form1.AKeyDown);This works fine, AKeyDown fires whenever a key is pressed.
I also want to know when it is released, but there is not a function (Like: application.AddOnKeyUpHandler) to do this with.
Is there another way to detect keys being released?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

TinyPortal © 2005-2018