Re: keydown, determining if a keypress was "repeated"

2008-03-03 Thread Randall Meadows
On Mar 3, 2008, at 10:25 AM, David Harper wrote: When a keyDown event is received, does anyone know how to determine whether the event was caused by a key press or a timed repeat? For example, when the x key is pressed and held, I would prefer to ignore the events following the initial key

keydown, determining if a keypress was "repeated"

2008-03-03 Thread David Harper
Hello, When a keyDown event is received, does anyone know how to determine whether the event was caused by a key press or a timed repeat? For example, when the x key is pressed and held, I would prefer to ignore the events following the initial key press. Thanks in advance, -Dave H.