Blockbench Reference Docs
    Preparing search index...
    Keybinds: {
        actions: (KeybindItem | BarItem)[];
        dialog: null | Dialog;
        extra: Record<string, KeybindItem>;
        recording: Keybind | false;
        stored: Record<string, KeybindKeys>;
        structure: any;
        loadKeymap(id: string, from_start_screen?: boolean): true | void;
        noOverlap(k1: KeybindItem, k2: KeybindItem): boolean;
        save(): void;
    }

    Stores and handles things related to keybinds

    Type Declaration

    • actions: (KeybindItem | BarItem)[]
    • dialog: null | Dialog

      Reference to the keybindings dialog if it has been initialized

    • extra: Record<string, KeybindItem>
    • recording: Keybind | false
    • stored: Record<string, KeybindKeys>
    • structure: any
    • loadKeymap: function
      • Load an included keymap by ID

        Parameters

        • id: string
        • Optionalfrom_start_screen: boolean

        Returns true | void

    • noOverlap: function
      • Check if two KeybindItems are mutually exclusive, so only one can be available at the time. This is only the case if they each have a ConditionResolvable that is structured to support this

        Parameters

        Returns boolean

    • save: function
      • Save all keybindings to local storage

        Returns void