struct

CMiriCommand

A named command with default keybind

Module
Miri
Header
#include "Miri/Commands/CMiriCommandSystem.h"
Namespace
Miri

Properties

TypeNameDescription
CNameId
CTextLabel
CTextDescription
CInputChordDefaultChord
CInputChordActiveChordCurrent (possibly remapped)
CInputChordDefaultSecondaryChord
CInputChordSecondaryChord
boolAllowInTextInputWhile 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

SignatureNameDescription
CMiriCommand() = defaultCMiriCommand
CMiriCommand(const CName& id, const CText& label, const CInputChord& chord = {},…CMiriCommand

Function details

CMiriCommand

C++
CMiriCommand() = default

CMiriCommand

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