struct
CMiriCommand
A named command with default keybind
- Module
- Miri
- Header
#include "Miri/Commands/CMiriCommandSystem.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
CName | Id | |
CText | Label | |
CText | Description | |
CInputChord | DefaultChord | |
CInputChord | ActiveChord | Current (possibly remapped) |
CInputChord | DefaultSecondaryChord | |
CInputChord | SecondaryChord | |
bool | AllowInTextInput | While a text input holds focus, a chord dispatches only if its command says so (save, the command palette, a panel's search). The text box already had first refusal; what it declined (Escape on unchanged text, Ctrl+B, F5, Ctrl+1) used to run whatever the editor bound to it, so a search field could stop Play or move focus to another panel mid-word. Default false. |
Constructors
| Signature | Name | Description |
|---|---|---|
CMiriCommand() = default | CMiriCommand | |
CMiriCommand(const CName& id, const CText& label, const CInputChord& chord = {},… | CMiriCommand |
Function details
CMiriCommand
C++
CMiriCommand() = defaultCMiriCommand
C++
CMiriCommand(const CName& id, const CText& label, const CInputChord& chord = {}, const CInputChord& secondaryChord = {}) : Id(id), Label(label), DefaultChord(chord), ActiveChord(chord), DefaultSecondaryChord(secondaryChord), SecondaryChord(secondaryChord)Generated from Miri/Commands/CMiriCommandSystem.h via miri.json · Dec 5, 2026Version 1.1.0