settings.key_list
Overview
- Lists keyboard shortcuts the way the options shortcut screen groups them: by category (TopView, ShoulderView, FreeCamera, Vehicle, DiveView, Build, CharacterCustomize, Photo), split into editable shortcuts and reserved inputs (not editable: cancel, mouse input, debug keys...; informational only). Each entry has its action name (use it with settings.key_bind / settings.key_unbind), display name, current key and default key.
Metadata
| Field | Value |
|---|---|
| Display | List Shortcuts |
| Category | settings |
| Access | Public |
| Scope | B1Standalone |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| category | string | no | — | Shortcut category (TopView, ShoulderView, FreeCamera, Vehicle, DiveView, Build, CharacterCustomize, Photo) or 'all'. Default: category of the current game mode |
| key | string | no | — | Only shortcuts currently on this key (FKey name, e.g. F, E, LeftMouseButton) |
| filter | string | no | — | Only shortcuts whose action or display name contains this text |
| editable_only | bool | no | false | Only editable shortcuts (omit reserved inputs) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
count | int | yes | Number of shortcuts returned |
categories | array<object> | yes | One entry per category; shortcuts are in its 'editable' and 'reserved' arrays (action, display_name, editable, key, modifier, default_key, default_modifier, is_default) |
categories[].category | string | yes | Category id (EB1GameMode name) |
categories[].category_name | string | yes | Localized category name as shown in the options |
categories[].editable | array<object> | yes | Editable shortcuts |
categories[].reserved | array<object> | yes | Reserved inputs that cannot be changed (informational) |
Usage
await inzoi.cli.execute('settings.key_list', {
category: '', // optional
key: '', // optional
filter: '', // optional
editable_only: false, // optional
});