@witchcraft/spellcraft
    Preparing search index...

    Type Alias Shortcuts<TEntries>

    type Shortcuts<TEntries extends Shortcut[] = Shortcut[]> = {
        entries: TEntries;
        ignoreChainConflicts?: boolean;
        ignoreModifierConflicts?: boolean;
        useContextInConflictCheck?: boolean;
    }

    Type Parameters

    Index

    Properties

    entries: TEntries

    The shortcut entries.

    To add/remove entries you should addShortcut/removeShortcut or setShortcutsProp with the synthetic entries@add/remove properties.

    The synthetic properties can be hooked into with Manager.hooks.

    ignoreChainConflicts?: boolean

    For doesShortcutConflictWith.

    If this is true, partial chain conflicts (e.g. Space conflicts with Space+A) will be ignored. You will need to figure out how to handle them manually.

    ignoreModifierConflicts?: boolean

    For doesShortcutConflictWith.

    If this is true, modifier conflicts (e.g. Ctrl conflicts with Ctrl+A) will be ignored. You will need to figure out how to handle them manually.

    useContextInConflictCheck?: boolean

    For doesShortcutConflictWith.

    If this is true, the manager's context will be used to check conditions agains.

    Given all other conditions are equal, the shortcuts can only be in conflict if they both match the context. Note this means if neither match the context they are not considered to conflict (even though they might in another context). This is meant to be used when they both match the context, but some behavior had to be chosen for when they don't.