Skip to main content

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

FieldValue
DisplayList Shortcuts
Categorysettings
AccessPublic
ScopeB1Standalone
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
categorystringno—Shortcut category (TopView, ShoulderView, FreeCamera, Vehicle, DiveView, Build, CharacterCustomize, Photo) or 'all'. Default: category of the current game mode
keystringno—Only shortcuts currently on this key (FKey name, e.g. F, E, LeftMouseButton)
filterstringno—Only shortcuts whose action or display name contains this text
editable_onlyboolnofalseOnly editable shortcuts (omit reserved inputs)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
countintyesNumber of shortcuts returned
categoriesarray<object>yesOne entry per category; shortcuts are in its 'editable' and 'reserved' arrays (action, display_name, editable, key, modifier, default_key, default_modifier, is_default)
categories[].categorystringyesCategory id (EB1GameMode name)
categories[].category_namestringyesLocalized category name as shown in the options
categories[].editablearray<object>yesEditable shortcuts
categories[].reservedarray<object>yesReserved inputs that cannot be changed (informational)

Usage

await inzoi.cli.execute('settings.key_list', {
category: '', // optional
key: '', // optional
filter: '', // optional
editable_only: false, // optional
});