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
  • a

    The A key.

    Declaration

    Swift

    static let a: Keys
  • add

    The add key.

    Declaration

    Swift

    static let add: Keys
  • alt

    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
  • b

    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
  • c

    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
  • d

    The D key.

    Declaration

    Swift

    static let d: Keys
  • d0

    The 0 key.

    Declaration

    Swift

    static let d0: Keys
  • d1

    The 1 key.

    Declaration

    Swift

    static let d1: Keys
  • d2

    The 2 key.

    Declaration

    Swift

    static let d2: Keys
  • d3

    The 3 key.

    Declaration

    Swift

    static let d3: Keys
  • d4

    The 4 key.

    Declaration

    Swift

    static let d4: Keys
  • d5

    The 5 key.

    Declaration

    Swift

    static let d5: Keys
  • d6

    The 6 key.

    Declaration

    Swift

    static let d6: Keys
  • d7

    The 7 key.

    Declaration

    Swift

    static let d7: Keys
  • d8

    The 8 key.

    Declaration

    Swift

    static let d8: Keys
  • d9

    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
  • e

    The E key.

    Declaration

    Swift

    static let e: Keys
  • end

    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
  • f

    The F key.

    Declaration

    Swift

    static let f: Keys
  • f1

    The F1 key.

    Declaration

    Swift

    static let f1: Keys
  • f10

    The F10 key.

    Declaration

    Swift

    static let f10: Keys
  • f11

    The F11 key.

    Declaration

    Swift

    static let f11: Keys
  • f12

    The F12 key.

    Declaration

    Swift

    static let f12: Keys
  • f13

    The F13 key.

    Declaration

    Swift

    static let f13: Keys
  • f14

    The F14 key.

    Declaration

    Swift

    static let f14: Keys
  • f15

    The F15 key.

    Declaration

    Swift

    static let f15: Keys
  • f16

    The F16 key.

    Declaration

    Swift

    static let f16: Keys
  • f17

    The F17 key.

    Declaration

    Swift

    static let f17: Keys
  • f18

    The F18 key.

    Declaration

    Swift

    static let f18: Keys
  • f19

    The F19 key.

    Declaration

    Swift

    static let f19: Keys
  • f2

    The F2 key.

    Declaration

    Swift

    static let f2: Keys
  • f20

    The F20 key.

    Declaration

    Swift

    static let f20: Keys
  • f21

    The F21 key.

    Declaration

    Swift

    static let f21: Keys
  • f22

    The F22 key.

    Declaration

    Swift

    static let f22: Keys
  • f23

    The F23 key.

    Declaration

    Swift

    static let f23: Keys
  • f24

    The F24 key.

    Declaration

    Swift

    static let f24: Keys
  • f3

    The F3 key.

    Declaration

    Swift

    static let f3: Keys
  • f4

    The F4 key.

    Declaration

    Swift

    static let f4: Keys
  • f5

    The F5 key.

    Declaration

    Swift

    static let f5: Keys
  • f6

    The F6 key.

    Declaration

    Swift

    static let f6: Keys
  • f7

    The F7 key.

    Declaration

    Swift

    static let f7: Keys
  • f8

    The F8 key.

    Declaration

    Swift

    static let f8: Keys
  • f9

    The F9 key.

    Declaration

    Swift

    static let f9: Keys
  • The IME final mode key.

    Declaration

    Swift

    static let finalMode: Keys
  • g

    The G key.

    Declaration

    Swift

    static let g: Keys
  • h

    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
  • i

    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
  • j

    The J key.

    Declaration

    Swift

    static let j: Keys
  • The IME Junja mode key.

    Declaration

    Swift

    static let junjaMode: Keys
  • k

    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
  • l

    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
  • m

    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
  • n

    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
  • o

    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
  • p

    The P key.

    Declaration

    Swift

    static let p: Keys
  • pa1

    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
  • q

    The Q key.

    Declaration

    Swift

    static let q: Keys
  • r

    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
  • s

    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
  • t

    The T key.

    Declaration

    Swift

    static let t: Keys
  • tab

    The TAB key.

    Declaration

    Swift

    static let tab: Keys
  • u

    The U key.

    Declaration

    Swift

    static let u: Keys
  • up

    The UP ARROW key.

    Declaration

    Swift

    static let up: Keys
  • v

    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
  • w

    The W key.

    Declaration

    Swift

    static let w: Keys
  • x

    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
  • y

    The Y key.

    Declaration

    Swift

    static let y: Keys
  • z

    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
  • OS-equivalent to ‘control’, for keyboard. On macOS, this property is the same as command, and on windows and Linux, control.

    Declaration

    Swift

    static let osControlKey: Keys
  • OS-equivalent to ‘control’, for keyboard. On macOS, this property is the same as command, and on windows and Linux, control.