Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyCode

Representation of a pressed key combined with key modifiers.

Hierarchy

  • KeyCode

Index

Constructors

constructor

Properties

Readonly alt

alt: boolean

Readonly character

character: undefined | string

Readonly ctrl

ctrl: boolean

Readonly key

key: undefined | Key

Readonly meta

meta: boolean

Readonly shift

shift: boolean

Static Private keybindings

keybindings: {} = {}

Type declaration

Methods

equals

isModifierOnly

  • isModifierOnly(): boolean

toString

  • toString(): string

Static createKeyCode

Static parse

  • parse(keybinding: string): KeyCode

Static resetKeyBindings

  • resetKeyBindings(): void