@witchcraft/spellcraft
    Preparing search index...

    Function dedupeKeys

    • Returns a new array deduped according to equalsKey.

      This is useful when keys have variants to dedupe them by their variants since a shortcut might contain multiple variants, which can make it hard to check chords satisfy certain conditions (e.g. x amount of modifiers).

      Parameters

      • keyList: string[]
      • keys: Keys
      • opts: { allowVariants?: boolean } = {}

      Returns string[]