Link Search Menu Expand Document

KeyModifierFlags

Constants that indicate which modifier keys are pressed.

public struct KeyModifierFlags: OptionSet 

Inheritance

OptionSet

Nested Type Aliases

RawValue

public typealias RawValue = Int

Initializers

init(rawValue:)

public init(rawValue: RawValue) 

Properties

rawValue

public let rawValue: RawValue

alphaShift

A modifier flag that indicates the user pressed the Caps Lock key.

public static var alphaShift: KeyModifierFlags 

shift

A modifier flag that indicates the user pressed the Shift key.

public static var shift: KeyModifierFlags 

control

A modifier flag that indicates the user pressed the Control key.

public static var control: KeyModifierFlags 

alternate

A modifier flag that indicates the user pressed the Option key.

public static var alternate: KeyModifierFlags 

command

A modifier flag that indicates the user pressed the Command key.

public static var command: KeyModifierFlags 

numericPad

A modifier flag that indicates the user pressed a key located on the numeric keypad.

public static var numericPad: KeyModifierFlags