Key

public enum Key

The Key enumeration contains special encoding for some keys, but can also encode all the unicode values that can be passed.

If the SpecialMask is set, then the value is that of the special mask, otherwise, the value is the one of the lower bits (as extracted by CharMask)

Control keys are the values between 1 and 26 corresponding to Control-A to Control-Z

UnicodeScalars are also stored here, the letter ‘A" for example is encoded as a value 65 (not surfaced in the enum).

  • The key code for the user pressing Control-spacebar

    Declaration

    Swift

    case controlSpace
  • The key code for the user pressing Control-A

    Declaration

    Swift

    case controlA
  • The key code for the user pressing Control-B

    Declaration

    Swift

    case controlB
  • The key code for the user pressing Control-C

    Declaration

    Swift

    case controlC
  • The key code for the user pressing Control-D

    Declaration

    Swift

    case controlD
  • The key code for the user pressing Control-E

    Declaration

    Swift

    case controlE
  • The key code for the user pressing Control-F

    Declaration

    Swift

    case controlF
  • The key code for the user pressing Control-G

    Declaration

    Swift

    case controlG
  • The key code for the user pressing Control-H

    Declaration

    Swift

    case controlH
  • The key code for the user pressing Control-I

    Declaration

    Swift

    case controlI
  • The key code for the user pressing Control-J

    Declaration

    Swift

    case controlJ
  • The key code for the user pressing Control-K

    Declaration

    Swift

    case controlK
  • The key code for the user pressing Control-L

    Declaration

    Swift

    case controlL
  • The key code for the user pressing Control-M

    Declaration

    Swift

    case controlM
  • The key code for the user pressing Control-N

    Declaration

    Swift

    case controlN
  • The key code for the user pressing Control-O

    Declaration

    Swift

    case controlO
  • The key code for the user pressing Control-P

    Declaration

    Swift

    case controlP
  • The key code for the user pressing Control-Q

    Declaration

    Swift

    case controlQ
  • The key code for the user pressing Control-R

    Declaration

    Swift

    case controlR
  • The key code for the user pressing Control-S

    Declaration

    Swift

    case controlS
  • The key code for the user pressing Control-T

    Declaration

    Swift

    case controlT
  • The key code for the user pressing Control-U

    Declaration

    Swift

    case controlU
  • The key code for the user pressing Control-V

    Declaration

    Swift

    case controlV
  • The key code for the user pressing Control-W

    Declaration

    Swift

    case controlW
  • The key code for the user pressing Control-X

    Declaration

    Swift

    case controlX
  • The key code for the user pressing Control-Y

    Declaration

    Swift

    case controlY
  • The key code for the user pressing Control-Z

    Declaration

    Swift

    case controlZ
  • esc

    The key code for the user pressing the ESC key

    Declaration

    Swift

    case esc
  • fs

    ASCII sequence for Field Separator (^)

    Declaration

    Swift

    case fs
  • gs

    ASCII sequence for Group Separator (^])

    Declaration

    Swift

    case gs
  • rs

    ASCII sequence for Record Separator (^^)

    Declaration

    Swift

    case rs
  • us

    ASCII sequence for Unit Separator (^_)

    Declaration

    Swift

    case us
  • The keycode for the user pressing the delete key

    Declaration

    Swift

    case delete
  • Cursor up key pressed

    Declaration

    Swift

    case cursorUp
  • Cursor down key pressed

    Declaration

    Swift

    case cursorDown
  • Cursor left key pressed

    Declaration

    Swift

    case cursorLeft
  • Cursor right key pressed

    Declaration

    Swift

    case cursorRight
  • Page up key pressed

    Declaration

    Swift

    case pageUp
  • Page down key pressed

    Declaration

    Swift

    case pageDown
  • Home key pressed

    Declaration

    Swift

    case home
  • end

    End key pressed

    Declaration

    Swift

    case end
  • Delete character key

    Declaration

    Swift

    case deleteChar
  • Insert character key

    Declaration

    Swift

    case insertChar
  • f1

    The F1 Key

    Declaration

    Swift

    case f1
  • f2

    The F2 Key

    Declaration

    Swift

    case f2
  • f3

    The F3 Key

    Declaration

    Swift

    case f3
  • f4

    The F4 Key

    Declaration

    Swift

    case f4
  • f5

    The F5 Key

    Declaration

    Swift

    case f5
  • f6

    The F6 Key

    Declaration

    Swift

    case f6
  • f7

    The F7 Key

    Declaration

    Swift

    case f7
  • f8

    The F8 Key

    Declaration

    Swift

    case f8
  • f9

    The F9 Key

    Declaration

    Swift

    case f9
  • f10

    The F10 Key

    Declaration

    Swift

    case f10
  • The shift-tab key

    Declaration

    Swift

    case backtab
  • Undocumented

    Declaration

    Swift

    case letter(Character)
  • Undocumented

    Declaration

    Swift

    case Unknown