Skip navigation.
 
mlRe: keydown, determining if a keypress was "repeated"
FROM : Randall Meadows
DATE : Mon Mar 03 18:37:50 2008

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 press.


NSEvent -isARepeat

Related mailsAuthorDate
mlkeydown, determining if a keypress was "repeated" David Harper Mar 3, 18:25
mlRe: keydown, determining if a keypress was "repeated" Randall Meadows Mar 3, 18:37