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

The types of events handled by responder objects.

subtype

The event’s subtype.

NSEventSubtype

Subtypes for various types of events.

NSEventMask

Constants that you use to filter out specific event types from the stream of incoming events.