Instance Property

ARepeat

A Boolean value that indicates whether the key event is a repeat.

Declaration

@property(getter=isARepeat, readonly) BOOL ARepeat;

Discussion

Contains YES if the key event is a repeat caused by the user holding the key down; otherwise, NO. Raises an NSInternalInconsistencyException if sent to an NSFlagsChanged event or other non-key event.

See Also

Getting Key Event Information

modifierFlags

Returns the currently pressed modifier flags.

NSEventModifierFlags

Flags that represent key states in an event object.

keyRepeatDelay

Returns the length of time a key must be held down in order to generate the first key repeat event.

keyRepeatInterval

Returns the length between subsequent key repeat events being posted.

characters

The characters associated with a key-up or key-down event.

charactersIgnoringModifiers

The characters generated by a key event as if no modifier key (except for Shift) applies.

keyCode

The virtual key code for the keyboard key associated with a key event.