Keys
public struct Keys : Hashable
Undocumented
-
Undocumented
Declaration
Swift
public var rawValue: Int
-
Undocumented
Declaration
Swift
public init(rawValue: Int)
-
Undocumented
Declaration
Swift
public func hasModifier(_ key: Keys) -> Bool
-
Undocumented
Declaration
Swift
public func hasModifier(_ modifier: KeyboardModifier) -> Bool
-
ABNT C1 key. Maps to
/
/?
/°
on Brazil ABNT/ABNT2 layouts.Declaration
Swift
static let abnt_c1: Keys
-
ABNT2 C1 key. Maps to
numpad +
on Brazil ABNT2 layouts.Declaration
Swift
static let abnt_c2: Keys
-
The A key.
Declaration
Swift
static let a: Keys
-
The add key.
Declaration
Swift
static let add: Keys
-
The ALT modifier key.
Declaration
Swift
static let alt: Keys
-
The application key (Microsoft Natural Keyboard).
Declaration
Swift
static let apps: Keys
-
The ATTN key.
Declaration
Swift
static let attn: Keys
-
The B key.
Declaration
Swift
static let b: Keys
-
The BACKSPACE key.
Declaration
Swift
static let back: Keys
-
The browser back key (Windows 2000 or later).
Declaration
Swift
static let browserBack: Keys
-
The browser favorites key (Windows 2000 or later).
Declaration
Swift
static let browserFavorites: Keys
-
The browser forward key (Windows 2000 or later).
Declaration
Swift
static let browserForward: Keys
-
The browser home key (Windows 2000 or later).
Declaration
Swift
static let browserHome: Keys
-
The browser refresh key (Windows 2000 or later).
Declaration
Swift
static let browserRefresh: Keys
-
The browser search key (Windows 2000 or later).
Declaration
Swift
static let browserSearch: Keys
-
The browser stop key (Windows 2000 or later).
Declaration
Swift
static let browserStop: Keys
-
The C key.
Declaration
Swift
static let c: Keys
-
The CANCEL key.
Declaration
Swift
static let cancel: Keys
-
The CAPS LOCK key.
Declaration
Swift
static let capital: Keys
-
The CAPS LOCK key.
Declaration
Swift
static let capsLock: Keys
-
The CLEAR key.
Declaration
Swift
static let clear: Keys
-
The CTRL modifier key.
Declaration
Swift
static let control: Keys
-
The CTRL key.
Declaration
Swift
static let controlKey: Keys
-
The CRSEL key.
Declaration
Swift
static let crsel: Keys
-
The D key.
Declaration
Swift
static let d: Keys
-
The 0 key.
Declaration
Swift
static let d0: Keys
-
The 1 key.
Declaration
Swift
static let d1: Keys
-
The 2 key.
Declaration
Swift
static let d2: Keys
-
The 3 key.
Declaration
Swift
static let d3: Keys
-
The 4 key.
Declaration
Swift
static let d4: Keys
-
The 5 key.
Declaration
Swift
static let d5: Keys
-
The 6 key.
Declaration
Swift
static let d6: Keys
-
The 7 key.
Declaration
Swift
static let d7: Keys
-
The 8 key.
Declaration
Swift
static let d8: Keys
-
The 9 key.
Declaration
Swift
static let d9: Keys
-
The decimal key.
Declaration
Swift
static let decimal: Keys
-
The DEL key.
Declaration
Swift
static let delete: Keys
-
The divide key.
Declaration
Swift
static let divide: Keys
-
The DOWN ARROW key.
Declaration
Swift
static let down: Keys
-
The E key.
Declaration
Swift
static let e: Keys
-
The END key.
Declaration
Swift
static let end: Keys
-
The ENTER key.
Declaration
Swift
static let enter: Keys
-
The ERASE EOF key.
Declaration
Swift
static let eraseEof: Keys
-
The ESC key.
Declaration
Swift
static let escape: Keys
-
The EXECUTE key.
Declaration
Swift
static let execute: Keys
-
The EXSEL key.
Declaration
Swift
static let exsel: Keys
-
The F key.
Declaration
Swift
static let f: Keys
-
The F1 key.
Declaration
Swift
static let f1: Keys
-
The F10 key.
Declaration
Swift
static let f10: Keys
-
The F11 key.
Declaration
Swift
static let f11: Keys
-
The F12 key.
Declaration
Swift
static let f12: Keys
-
The F13 key.
Declaration
Swift
static let f13: Keys
-
The F14 key.
Declaration
Swift
static let f14: Keys
-
The F15 key.
Declaration
Swift
static let f15: Keys
-
The F16 key.
Declaration
Swift
static let f16: Keys
-
The F17 key.
Declaration
Swift
static let f17: Keys
-
The F18 key.
Declaration
Swift
static let f18: Keys
-
The F19 key.
Declaration
Swift
static let f19: Keys
-
The F2 key.
Declaration
Swift
static let f2: Keys
-
The F20 key.
Declaration
Swift
static let f20: Keys
-
The F21 key.
Declaration
Swift
static let f21: Keys
-
The F22 key.
Declaration
Swift
static let f22: Keys
-
The F23 key.
Declaration
Swift
static let f23: Keys
-
The F24 key.
Declaration
Swift
static let f24: Keys
-
The F3 key.
Declaration
Swift
static let f3: Keys
-
The F4 key.
Declaration
Swift
static let f4: Keys
-
The F5 key.
Declaration
Swift
static let f5: Keys
-
The F6 key.
Declaration
Swift
static let f6: Keys
-
The F7 key.
Declaration
Swift
static let f7: Keys
-
The F8 key.
Declaration
Swift
static let f8: Keys
-
The F9 key.
Declaration
Swift
static let f9: Keys
-
The IME final mode key.
Declaration
Swift
static let finalMode: Keys
-
The G key.
Declaration
Swift
static let g: Keys
-
The H key.
Declaration
Swift
static let h: Keys
-
The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
Declaration
Swift
static let hanguelMode: Keys
-
The IME Hangul mode key.
Declaration
Swift
static let hangulMode: Keys
-
The IME Hanja mode key.
Declaration
Swift
static let hanjaMode: Keys
-
The HELP key.
Declaration
Swift
static let help: Keys
-
The HOME key.
Declaration
Swift
static let home: Keys
-
The I key.
Declaration
Swift
static let i: Keys
-
The IME accept key, replaces IMEAceept.
Declaration
Swift
static let imeAccept: Keys
-
The IME accept key. Obsolete, use IMEAccept instead.
Declaration
Swift
static let imeAceept: Keys
-
The IME convert key.
Declaration
Swift
static let imeConvert: Keys
-
The IME mode change key.
Declaration
Swift
static let imeModeChange: Keys
-
The IME nonconvert key.
Declaration
Swift
static let imeNonconvert: Keys
-
The INS key.
Declaration
Swift
static let insert: Keys
-
The J key.
Declaration
Swift
static let j: Keys
-
The IME Junja mode key.
Declaration
Swift
static let junjaMode: Keys
-
The K key.
Declaration
Swift
static let k: Keys
-
The IME Kana mode key.
Declaration
Swift
static let kanaMode: Keys
-
The IME Kanji mode key.
Declaration
Swift
static let kanjiMode: Keys
-
The bitmask to extract a key code from a key value.
Declaration
Swift
static let keyCode: Keys
-
The L key.
Declaration
Swift
static let l: Keys
-
The start application one key (Windows 2000 or later).
Declaration
Swift
static let launchApplication1: Keys
-
The start application two key (Windows 2000 or later).
Declaration
Swift
static let launchApplication2: Keys
-
The launch mail key (Windows 2000 or later).
Declaration
Swift
static let launchMail: Keys
-
The left mouse button.
Declaration
Swift
static let lButton: Keys
-
The left CTRL key.
Declaration
Swift
static let lControlKey: Keys
-
The LEFT ARROW key.
Declaration
Swift
static let left: Keys
-
The LINEFEED key.
Declaration
Swift
static let lineFeed: Keys
-
The left ALT key.
Declaration
Swift
static let lMenu: Keys
-
The left SHIFT key.
Declaration
Swift
static let lShiftKey: Keys
-
The left Windows logo key (Microsoft Natural Keyboard).
Declaration
Swift
static let lWin: Keys
-
The M key.
Declaration
Swift
static let m: Keys
-
The middle mouse button (three-button mouse).
Declaration
Swift
static let mButton: Keys
-
The media next track key (Windows 2000 or later).
Declaration
Swift
static let mediaNextTrack: Keys
-
The media play pause key (Windows 2000 or later).
Declaration
Swift
static let mediaPlayPause: Keys
-
The media previous track key (Windows 2000 or later).
Declaration
Swift
static let mediaPreviousTrack: Keys
-
The media Stop key (Windows 2000 or later).
Declaration
Swift
static let mediaStop: Keys
-
The ALT key.
Declaration
Swift
static let menu: Keys
-
The bitmask to extract modifiers from a key value.
Declaration
Swift
static let modifiers: Keys
-
The multiply key.
Declaration
Swift
static let multiply: Keys
-
The N key.
Declaration
Swift
static let n: Keys
-
The PAGE DOWN key.
Declaration
Swift
static let next: Keys
-
A constant reserved for future use.
Declaration
Swift
static let noName: Keys
-
No key pressed.
Declaration
Swift
static let none: Keys
-
The NUM LOCK key.
Declaration
Swift
static let numLock: Keys
-
The 0 key on the numeric keypad.
Declaration
Swift
static let numPad0: Keys
-
The 1 key on the numeric keypad.
Declaration
Swift
static let numPad1: Keys
-
The 2 key on the numeric keypad.
Declaration
Swift
static let numPad2: Keys
-
The 3 key on the numeric keypad.
Declaration
Swift
static let numPad3: Keys
-
The 4 key on the numeric keypad.
Declaration
Swift
static let numPad4: Keys
-
The 5 key on the numeric keypad.
Declaration
Swift
static let numPad5: Keys
-
The 6 key on the numeric keypad.
Declaration
Swift
static let numPad6: Keys
-
The 7 key on the numeric keypad.
Declaration
Swift
static let numPad7: Keys
-
The 8 key on the numeric keypad.
Declaration
Swift
static let numPad8: Keys
-
The 9 key on the numeric keypad.
Declaration
Swift
static let numPad9: Keys
-
The O key.
Declaration
Swift
static let o: Keys
-
The OEM 1 key.
Declaration
Swift
static let oem1: Keys
-
The OEM 102 key.
Declaration
Swift
static let oem102: Keys
-
The OEM 2 key.
Declaration
Swift
static let oem2: Keys
-
The OEM 3 key.
Declaration
Swift
static let oem3: Keys
-
The OEM 4 key.
Declaration
Swift
static let oem4: Keys
-
The OEM 5 key.
Declaration
Swift
static let oem5: Keys
-
The OEM 6 key.
Declaration
Swift
static let oem6: Keys
-
The OEM 7 key.
Declaration
Swift
static let oem7: Keys
-
The OEM 8 key.
Declaration
Swift
static let oem8: Keys
-
The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000 or later).
Declaration
Swift
static let oemBackslash: Keys
-
The CLEAR key.
Declaration
Swift
static let oemClear: Keys
-
The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemCloseBrackets: Keys
-
The OEM comma key on any country/region keyboard (Windows 2000 or later).
Declaration
Swift
static let oemcomma: Keys
-
The OEM minus key on any country/region keyboard (Windows 2000 or later).
Declaration
Swift
static let oemMinus: Keys
-
The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemOpenBrackets: Keys
-
The OEM period key on any country/region keyboard (Windows 2000 or later).
Declaration
Swift
static let oemPeriod: Keys
-
The OEM pipe key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemPipe: Keys
-
The OEM plus key on any country/region keyboard (Windows 2000 or later).
Declaration
Swift
static let oemplus: Keys
-
The OEM question mark key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemQuestion: Keys
-
The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemQuotes: Keys
-
The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemSemicolon: Keys
-
The OEM tilde key on a US standard keyboard (Windows 2000 or later).
Declaration
Swift
static let oemtilde: Keys
-
The P key.
Declaration
Swift
static let p: Keys
-
The PA1 key.
Declaration
Swift
static let pa1: Keys
-
Used to pass Unicode characters as if they were keystrokes. The Packet /key value is the low word of a 32-bit virtual-key value used for non-keyboard input methods.
Declaration
Swift
static let packet: Keys
-
The PAGE DOWN key.
Declaration
Swift
static let pageDown: Keys
-
The PAGE UP key.
Declaration
Swift
static let pageUp: Keys
-
The PAUSE key.
Declaration
Swift
static let pause: Keys
-
The PLAY key.
Declaration
Swift
static let play: Keys
-
The PRINT key.
Declaration
Swift
static let print: Keys
-
The PRINT SCREEN key.
Declaration
Swift
static let printScreen: Keys
-
The PAGE UP key.
Declaration
Swift
static let prior: Keys
-
The PROCESS KEY key.
Declaration
Swift
static let processKey: Keys
-
The Q key.
Declaration
Swift
static let q: Keys
-
The R key.
Declaration
Swift
static let r: Keys
-
The right mouse button.
Declaration
Swift
static let rButton: Keys
-
The right CTRL key.
Declaration
Swift
static let rControlKey: Keys
-
The RETURN key.
Declaration
Swift
static let `return`: Keys
-
The RIGHT ARROW key.
Declaration
Swift
static let right: Keys
-
The right ALT key.
Declaration
Swift
static let rMenu: Keys
-
The right SHIFT key.
Declaration
Swift
static let rShiftKey: Keys
-
The right Windows logo key (Microsoft Natural Keyboard).
Declaration
Swift
static let rWin: Keys
-
The S key.
Declaration
Swift
static let s: Keys
-
The SCROLL LOCK key.
Declaration
Swift
static let scroll: Keys
-
The SELECT key.
Declaration
Swift
static let select: Keys
-
The select media key (Windows 2000 or later).
Declaration
Swift
static let selectMedia: Keys
-
The separator key.
Declaration
Swift
static let separator: Keys
-
The SHIFT modifier key.
Declaration
Swift
static let shift: Keys
-
The SHIFT key.
Declaration
Swift
static let shiftKey: Keys
-
The computer sleep key.
Declaration
Swift
static let sleep: Keys
-
The PRINT SCREEN key.
Declaration
Swift
static let snapshot: Keys
-
The SPACEBAR key.
Declaration
Swift
static let space: Keys
-
The subtract key.
Declaration
Swift
static let subtract: Keys
-
The T key.
Declaration
Swift
static let t: Keys
-
The TAB key.
Declaration
Swift
static let tab: Keys
-
The U key.
Declaration
Swift
static let u: Keys
-
The UP ARROW key.
Declaration
Swift
static let up: Keys
-
The V key.
Declaration
Swift
static let v: Keys
-
The volume down key (Windows 2000 or later).
Declaration
Swift
static let volumeDown: Keys
-
The volume mute key (Windows 2000 or later).
Declaration
Swift
static let volumeMute: Keys
-
The volume up key (Windows 2000 or later).
Declaration
Swift
static let volumeUp: Keys
-
The W key.
Declaration
Swift
static let w: Keys
-
The X key.
Declaration
Swift
static let x: Keys
-
The first x mouse button (five-button mouse).
Declaration
Swift
static let xButton1: Keys
-
The second x mouse button (five-button mouse).
Declaration
Swift
static let xButton2: Keys
-
The Y key.
Declaration
Swift
static let y: Keys
-
The Z key.
Declaration
Swift
static let z: Keys
-
The ZOOM key.
Declaration
Swift
static let zoom: Keys
-
Command key (macOS only)
Declaration
Swift
static let command: Keys