Index

Classes

Variables

Functions

Variables

Let modeState

modeState: GobbleState = undefined

Functions

init

  • init(numChars: number, endCommand: string): void
  • Init gobble mode. After parsing the defined number of input keys, execute endCmd with attached parsed input. Escape cancels the mode and returns to normal mode.

    Parameters

    • numChars: number
    • endCommand: string

    Returns void

parser

  • parser(keys: KeyboardEvent[]): object | object
  • Receive keypress. If applicable, execute a command.

    Parameters

    • keys: KeyboardEvent[]

    Returns object | object

reset

  • reset(): void