Instance Property

modifierFlags

An integer bit field indicating the event’s modifier keys.

Declaration

@property(readonly) NSEventModifierFlags modifierFlags;

Discussion

You can examine individual flag settings using the C bitwise AND operator with the predefined key masks described in Getting Unicode Values. The lower 16 bits of the modifier flags are reserved for device-dependent bits.

See Also

Getting the Event Type

type

The event’s type.

NSEventType

Various types of events.

subtype

The event’s subtype.

NSEventSubtype

Subtypes for various types of events.

NSEventMask

Constants that are masks for the events defined in NSEventType.