Enumeration

NSEventModifierFlags

Flags that represent key states in an event object.

Declaration

typedef enum NSEventModifierFlags : NSUInteger {
    ...
} NSEventModifierFlags;

Topics

Event Modifier Flags

NSEventModifierFlagCapsLock

The Caps Lock key has been pressed.

NSEventModifierFlagShift

The Shift key has been pressed.

NSEventModifierFlagControl

The Control key has been pressed.

NSEventModifierFlagOption

The Option or Alt key has been pressed.

NSEventModifierFlagCommand

The Command key has been pressed.

NSEventModifierFlagNumericPad

A key in the numeric keypad or an arrow key has been pressed.

NSEventModifierFlagHelp

The Help key has been pressed.

NSEventModifierFlagFunction

A function key has been pressed.

NSEventModifierFlagDeviceIndependentFlagsMask

Device-independent modifier flags are masked.

Deprecated

NSAlphaShiftKeyMask

The Caps Lock key has been pressed.

Deprecated
NSShiftKeyMask

The Shift key has been pressed.

Deprecated
NSControlKeyMask

The Control key has been pressed.

Deprecated
NSAlternateKeyMask

The Option or Alt key has been pressed.

Deprecated
NSCommandKeyMask

The Command key has been pressed.

Deprecated
NSNumericPadKeyMask

A key in the numeric keypad or an arrow key has been pressed.

Deprecated
NSHelpKeyMask

The Help key has been pressed.

Deprecated
NSFunctionKeyMask

A function key has been pressed.

Deprecated
NSDeviceIndependentModifierFlagsMask

Device-independent modifier flags are masked.

Deprecated

See Also

Getting Key Event Information

modifierFlags

Returns the currently pressed modifier flags.

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.

ARepeat

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

keyCode

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