On Wed, 08 Aug 2007 23:37:31 +0300
Valdas Jankūnas <[EMAIL PROTECTED]> wrote:

>  >Razvan Adrian Bogdan rašė:
> >> You mean hook into the keyboard, this is easily done on windows by
> >> adding hooks in keyboard, mouse, etc. i don't know how it's done in
> >> X11 or GTK but they should also have something for global
> >> shortcuts. Using OnKeyPress events only works if your app has
> >> focus.
> >> 
> >> Razvan
> >> 
>  >
>  > I think implementing Keyboard hook in linux is not easy..
>  >
>  > Thanks.
> 
>   There in Lazarus is way to detect true OnKeyUp event when user
> really releases keyboard key??

The gtk1 sends 'release' and 'press' events on repeat.
The gtk2 sends only 'press' events on repeat.
So with the gtk2 interface the OnKeyUp works correct.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to