@cartridge-engine/keyboard-engine
    Preparing search index...

    Function keyMatchesRule

    • Check whether a normalized key name is covered by a list of key rules.

      A key is covered when any rule's key matches, AND the rule either has no when condition or the condition evaluates to true. When all matching rules have when returning false, the key is NOT covered.

      Parameters

      • keyName: string
      • rules: KeyRule[]
      • conditions: Map<string, boolean>

      Returns boolean