interface CommandManager {
    byName: CommandMap;
    commands: CommandMap;
    addCommand(command): void;
    addCommands(command): void;
    addEventListener(name, callback, capturing?): void;
    bindKey(key, command, position?): void;
    bindKeys(keys): void;
    canExecute(command, editor): boolean;
    exec(command, editor, args): boolean;
    findKeyCommand(hashId, keyString): string;
    getStatusText(editor, data): string;
    handleKeyboard(data, hashId, keyString, keyCode): void | {
        command: string;
    };
    off(name, callback): void;
    on(name, callback): Function;
    on(name, callback): Function;
    on(name, callback, capturing?): void;
    once(name, callback): void;
    parseKeys(keyPart): {
        hashId: number;
        key: string;
    };
    removeAllListeners(name?): void;
    removeCommand(command, keepCommand?): void;
    removeCommands(command): void;
    removeDefaultHandler(name, callback): void;
    removeEventListener(name, callback): void;
    removeListener(name, callback): void;
    replay(editor): void;
    setDefaultHandler(name, callback): void;
    toggleRecording(editor): void;
}

Hierarchy (view full)

Properties

byName: CommandMap
commands: CommandMap

Methods

  • Parameters

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

    Returns void

  • Parameters

    • keys: {
          [s: string]: Function;
      }
      • [s: string]: Function

    Returns void

  • Parameters

    • hashId: number
    • keyString: string

    Returns string

  • Parameters

    Returns string

  • Parameters

    • data: {}
      • hashId: number
      • keyString: string
      • keyCode: string | number

      Returns void | {
          command: string;
      }

    • Parameters

      Returns Function

    • Parameters

      Returns Function

    • Parameters

      • name: string
      • callback: Function
      • Optional capturing: boolean

      Returns void

    • Parameters

      • keyPart: string

      Returns {
          hashId: number;
          key: string;
      }

      • hashId: number
      • key: string
    • Parameters

      • command: string | Ace.Command
      • Optional keepCommand: boolean

      Returns void

    Generated using TypeDoc