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
| Field | Value |
|---|---|
| Display | Bind Shortcut |
| Category | settings |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| action | name | yes | — | Action name of an editable shortcut (settings.key_list) |
| key | string | yes | — | FKey name (e.g. V, F5, MiddleMouseButton) |
| modifier | string | no | None | None (default), Shift, Ctrl or Alt |
| category | string | no | — | 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
});