A keyboard shortcut (modeled after CodeMirror 6 KeyBindings).

Hierarchy

Properties

focusAfter?: (() => HTMLElement)

Type declaration

    • (): HTMLElement
    • Specify an element to focus after running the action (defaults to the closest editor).

      Returns HTMLElement

key: string

The key(s) to press.

mac?: string

The key(s) to press on a Mac.

preventDefault?: boolean

Whether the key(s) default action should be prevented or not.

run?: (() => void)

Type declaration

    • (): void
    • The command to run.

      Returns void

shift?: (() => void)

Type declaration

    • (): void
    • The command to run when the shift key is held down.

      Returns void

Generated using TypeDoc