Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Keys

Hierarchy

  • Keys

Index

Accessors

Static list

Methods

Static createBitmaskForShortcut

  • createBitmaskForShortcut(shortcut: string, differentiateLeftRight: boolean): number

Static getKeyCode

  • getKeyCode(key: string): number
  • Returns the keycode of specific key

    Parameters

    • key: string

    Returns number

Static isDifferentiating

  • isDifferentiating(combo: Types.KeyCombo): boolean
  • Returns boolean whether this particular combo is requesting a location differentiation. Basically checks the first letter of the key for 'l' or 'r', excluding mentioned letters.

    Parameters

    • combo: Types.KeyCombo

    Returns boolean

Static isValidShortcut

  • isValidShortcut(combo: Types.KeyCombo): boolean
  • Returns whether passed string is valid shortcut (key combo)

    Parameters

    • combo: Types.KeyCombo

    Returns boolean

Static mapShortcutNotationToBTT

  • mapShortcutNotationToBTT(shortcut: string): string
  • Returns a valid BTT shortcut notation basing on given string

    Parameters

    • shortcut: string

    Returns string