Constants that indicate which modifier keys are pressed.
SDKs
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
struct UIKeyModifierFlags
Constants that indicate which modifier keys are pressed.
SDKs
Framework
struct UIKeyModifierFlags
static var alpha Shift: UIKey Modifier Flags
A modifier flag that indicates the user pressed the Caps Lock key.
static var shift: UIKey Modifier Flags
A modifier flag that indicates the user pressed the Shift key.
static var control: UIKey Modifier Flags
A modifier flag that indicates the user pressed the Control key.
static var alternate: UIKey Modifier Flags
A modifier flag that indicates the user pressed the Option key.
static var command: UIKey Modifier Flags
A modifier flag that indicates the user pressed the Command key.
static var numeric Pad: UIKey Modifier Flags
A modifier flag that indicates the user pressed a key located on the numeric keypad.