Blockbench Reference Docs
    Preparing search index...
    Index

    Constructors

    • Create a keybind

      Parameters

      • keys: {
            alt: boolean;
            ctrl: boolean;
            key: string | number;
            meta: boolean;
            shift: boolean;
        }

        Set up the default keys that need to be pressed

        • alt: boolean

          Alt key

        • ctrl: boolean

          Control key. On MacOS this automatically works for Cmd

        • key: string | number

          Main key. Check keycode.info to find out the numeric value, or simply use letters for letter keys

        • meta: boolean

          Meta key

        • shift: boolean

          Shift key

      • variations: any

      Returns Keybind

    Properties

    action: any
    alt: boolean
    conflict: boolean
    ctrl: boolean
    key: number
    label: string
    meta: boolean
    shift: boolean
    sub_id: any
    variations: {}

    Methods

    • Parameters

      • event: any
      • variation: any

      Returns string | true

    • Returns this

    • Parameters

      • key: any

      Returns string

    • Parameters

      • Optionalcolorized: boolean

      Returns string

    • Returns boolean

    • Parameters

      • event: any

      Returns boolean

    • Returns this

    • Parameters

      • save: any

      Returns this

    • Parameters

      • keys: any
      • dflt: any

      Returns this

    • Parameters

      • id: any
      • sub_id: any

      Returns this

    • Returns this

    • Returns this

    • Returns string