Skip to main content

settings.key_bind

Overview

  • Assigns a keyboard key (optionally with Shift/Ctrl/Alt) to an editable shortcut of a category, with exactly the rules of the options shortcut screen: reserved inputs cannot be changed, blacklisted keys and reserved combos are rejected, and conflicting editable shortcuts in the same category lose the key. Saved to the user settings; applied on the next tick.

Metadata

FieldValue
DisplayBind Shortcut
Categorysettings
AccessScriptCheat
ScopeB1Standalone
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
actionnameyes—Action name of an editable shortcut (settings.key_list)
keystringyes—FKey name (e.g. V, F5, MiddleMouseButton)
modifierstringnoNoneNone (default), Shift, Ctrl or Alt
categorystringno—Shortcut category. Default: category of the current game mode

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('settings.key_bind', {
action: '',
key: '',
modifier: 'None', // optional
category: '', // optional
});