Hierarchy (view full)

Constructors

  • new CommandManager(platform, commands)

    Parameters

    • platform: string

      Identifier for the platform; must be either "mac" or "win"

    • commands: any[]

      A list of commands

    Returns CommandManager

Properties

$addCommandToMacro: any
$inReplay: boolean
$singleCommand: boolean
byName: Record<string, Command>
commandKeyBinding: {}

Type declaration

    commands: Record<string, Command>
    macro: any
    oldMacro: any
    platform: string
    recording: boolean

    Methods

    • Parameters

      • key: string | {
            mac?: string;
            position?: number;
            win?: string;
        }
      • command: string | CommandLike
      • Optional position: number

      Returns void

    • Parameters

      • data: {
            $keyChain: string | any[];
        }
        • $keyChain: string | any[]
      • hashId: number
      • keyString: string
      • keyCode: number

      Returns void | {
          command: string;
      }

    • Accepts keys in the form ctrl+Enter or ctrl-Enter keys without modifiers or shift only

      Parameters

      • keys: string

      Returns false | {
          hashId: number;
          key: string;
      }

    Generated using TypeDoc