settings.key_unbind
Overview
- Removes the keyboard key (single key and Shift/Ctrl/Alt combos) from an editable shortcut, or from every editable shortcut on the given key, in a category. Reserved inputs are never touched. The default key does not come back until rebound or reset. Saved to the user settings.
Metadata
| Field | Value |
|---|---|
| Display | Unbind Shortcut |
| Category | settings |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| action | name | no | — | Action name of an editable shortcut. Either action or key is required |
| key | string | no | — | Unbind every editable shortcut on this key (FKey name) |
| category | string | no | — | Shortcut category. Default: category of the current game mode |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
category | string | yes | Category the shortcuts belong to |
unbound | array<string> | yes | Shortcuts whose keyboard key was removed |
Usage
await inzoi.cli.execute('settings.key_unbind', {
action: '', // optional
key: '', // optional
category: '', // optional
});