@watergis/maplibre-gl-terradraw
    Preparing search index...

    Function formatShortcutKey

    • Formats a keyboard shortcut key name into a human friendly label for tooltips. ctrl/control/meta are the primary command modifier and are shown as Command on macOS and Ctrl on other platforms, so the label always matches the key the user actually presses.

      Parameters

      • key: string

        key name from a keyboard shortcut config (e.g. ctrl, shift, z)

      Returns string

      display label