@witchcraft/spellcraft
    Preparing search index...
    • Labels keys using the experimental navigator keyboard map (you can get it using getKeyboardLayoutMap which safely gets it if it's available, otherwise you can use navigator.getLayoutMap).

      It will check for the key in the map first by the id, then by their variants.

      It returns a list of key ids that were set.

      Note that not all keys can be auto labeled with the navigator. Modifier keys and some other keys are not available.

      You can use labelWithEvent as a fallback, by using it with a filter and only labeling the keys that were not set by this function.

      Type Parameters

      • THooks extends Partial<Pick<Partial<Hooks>, "onSetKeyProp" | "canSetKeyProp">>

      Parameters

      Returns string[]