Phials developer documentation
User guide
AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0

CommandShortcut

Keyboard shortcut configuration for a command.

Signature

interface CommandShortcut {
    defaults?: ShortcutDefinition[];
    allowDefault?: boolean;
    priority?: number;
}

Members

NameTypeRequiredDescription
defaultsShortcutDefinition[]noDefault shortcut(s) - up to 3
allowDefaultbooleannoIf true, don’t call preventDefault() after handling
prioritynumbernoPriority for conflict resolution (higher = checked first)