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

ItemShortcutConfig

Shortcut configuration for context menu items. When defined, the shortcut is auto-registered with ShortcutManager.

Signature

interface ItemShortcutConfig {
    defaults?: ShortcutDefinition[];
    description?: string;
    allowDefault?: boolean;
    priority?: number;
}

Members

NameTypeRequiredDescription
defaultsShortcutDefinition[]noDefault shortcuts (up to 3). Use ShortcutDefinition format.
descriptionstringnoDescription shown in shortcuts settings
allowDefaultbooleannoIf true, don’t call preventDefault() after handling
prioritynumbernoPriority for conflict resolution (higher = checked first)