hammerspoon2-docs
    Preparing search index...

    Variable mapConst

    map: Record<string, number>

    A mapping from key names to macOS virtual key codes, following the current keyboard layout. This is the same mapping hs.hotkey and hs.eventtap use to turn a key name into a key code. For the reverse direction, use names. The map is rebuilt automatically whenever the keyboard input source changes. the layout doesn't type (e.g. 1 on AZERTY) map to their US-ANSI key position. semicolon, quote, comma, period, slash, grave. Each is the key that types that character in the current layout, so comma and , are always the same key.