Skip to main content

externalKey

Represents keyboard keys that aren't text, and that can be used with the interaction to Press.

Note: Modifier keys like Key.Shift, Key.Alt and Key.Meta (a.k.a. "Command" on Mac) will stay pressed, so there's no need to depress them.

Learn more

Index

Constructors

externalconstructor

  • new Key(devtoolsName: string, utf16codePoint: string, isModifier?: boolean): Key
  • Parameters

    • externaldevtoolsName: string
    • externalutf16codePoint: string
    • externalisModifier: boolean = false

    Returns Key

Properties

publicstaticexternalAlt

Alt: Key = ...

publicstaticexternalArrowDown

ArrowDown: Key = ...

publicstaticexternalArrowLeft

ArrowLeft: Key = ...

publicstaticexternalArrowRight

ArrowRight: Key = ...

publicstaticexternalArrowUp

ArrowUp: Key = ...

publicstaticexternalBackspace

Backspace: Key = ...

publicstaticexternalCancel

Cancel: Key = ...

publicstaticexternalClear

Clear: Key = ...

publicstaticexternalControl

Control: Key = ...

publicstaticexternalDelete

Delete: Key = ...

publicstaticexternalEnd

End: Key = ...

publicstaticexternalEnter

Enter: Key = ...

publicstaticexternalEscape

Escape: Key = ...

publicstaticexternalF1

F1: Key = ...

publicstaticexternalF2

F2: Key = ...

publicstaticexternalF3

F3: Key = ...

publicstaticexternalF4

F4: Key = ...

publicstaticexternalF5

F5: Key = ...

publicstaticexternalF6

F6: Key = ...

publicstaticexternalF7

F7: Key = ...

publicstaticexternalF8

F8: Key = ...

publicstaticexternalF9

F9: Key = ...

publicstaticexternalF10

F10: Key = ...

publicstaticexternalF11

F11: Key = ...

publicstaticexternalF12

F12: Key = ...

publicstaticexternalHelp

Help: Key = ...

publicstaticexternalHome

Home: Key = ...

publicstaticexternalInsert

Insert: Key = ...

publicstaticexternalMeta

Meta: Key = ...

publicstaticexternalNumpad0

Numpad0: Key = ...

publicstaticexternalNumpad1

Numpad1: Key = ...

publicstaticexternalNumpad2

Numpad2: Key = ...

publicstaticexternalNumpad3

Numpad3: Key = ...

publicstaticexternalNumpad4

Numpad4: Key = ...

publicstaticexternalNumpad5

Numpad5: Key = ...

publicstaticexternalNumpad6

Numpad6: Key = ...

publicstaticexternalNumpad7

Numpad7: Key = ...

publicstaticexternalNumpad8

Numpad8: Key = ...

publicstaticexternalNumpad9

Numpad9: Key = ...

publicstaticexternalNumpadAdd

NumpadAdd: Key = ...

publicstaticexternalNumpadDecimal

NumpadDecimal: Key = ...

publicstaticexternalNumpadDivide

NumpadDivide: Key = ...

publicstaticexternalNumpadEqual

NumpadEqual: Key = ...

publicstaticexternalNumpadMultiply

NumpadMultiply: Key = ...

publicstaticexternalNumpadSubtract

NumpadSubtract: Key = ...

publicstaticexternalPageDown

PageDown: Key = ...

publicstaticexternalPageUp

PageUp: Key = ...

publicstaticexternalPause

Pause: Key = ...

publicstaticexternalSemicolon

Semicolon: Key = ...

publicstaticexternalShift

Shift: Key = ...

publicstaticexternalSpace

Space: Key = ...

publicstaticexternalTab

Tab: Key = ...

publicexternalreadonlydevtoolsName

devtoolsName: string

publicexternalreadonlyutf16codePoint

utf16codePoint: string

publicexternalreadonlyisModifier

isModifier: boolean = false

Methods

publicstaticexternalisKey

  • isKey(maybeKey: unknown): maybeKey is Key
  • Parameters

    • externalmaybeKey: unknown

    Returns maybeKey is Key

externaltoString

  • toString(): string
  • Returns string