Constructors

Properties

Methods

  • Parameters

    • command: string
    • combo: string = ''

    Returns void

  • Resolve a combo string to a command id (or null).

    Parameters

    • combo: string

    Returns null | string

  • Called after every change to the keymap (a binding set, disabled or reset, a preset, a custom shortcut), so a hint drawn from it can follow. Returns the unsubscriber.

    Parameters

    • fn: () => void

    Returns () => void

  • Resolve a keyboard event to a command id (or null).

    Parameters

    • event: KeyLike

    Returns null | string

  • Run a custom command's handler (built-ins are executed by the chart).

    Parameters

    • command: string

    Returns boolean

  • Parameters

    • command: string
    • combo: string | string[]

    Returns boolean

  • True when a key event targets a text field and should be ignored.

    Parameters

    • target: unknown

    Returns boolean