Instance Property


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


var modifierFlags: NSEvent.ModifierFlags { get }


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

var type: NSEvent.EventType

The event’s type.

enum NSEvent.EventType

The types of events handled by responder objects.

var subtype: NSEvent.EventSubtype

The event’s subtype.

enum NSEvent.EventSubtype

Subtypes for various types of events.

struct NSEvent.EventTypeMask

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