On Tue, 07 Aug 2007 20:55:47 +0300
Valdas Jankūnas <[EMAIL PROTECTED]> wrote:

> Hi,
> 
>   in Lazarus if i press a key (for example "q") i get OnKeyDown
> event, and if i still hold pressed that key i get sequence of events
> OnKeuUp, onKeyDown, OnKeyUp, ... until i release key.
> 
>   I think that is not correct. IIRC in Delphi if i hold key pressed i 
> got only sequence of OnKeyDown events until i release that key. And
> in "http://delphi.about.com/od/objectpascalide/a/keyboard_events.htm"; 
> writes "If you hold down a key, the OnKeyUp event occurs after all
> the OnKeyDown and OnKeyPress events have occurred.".
> 
>   Maybe i get that because i use Linux and Gtk1, how are in win32?
>   Or this are OK, in Lazarus?

The Gtk1 sends press and release events during pressing.
The Gtk2 does it correct.

I don't know, if there is an easy way to add a workaround for the gtk1
interface.

 
>   I attached sample project for testing.


Mattias
 

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

Reply via email to