function detectPlatform(): "mac" | "windows" | "linux";
Defined in: constants.ts:30
Detects the current platform based on browser navigator properties.
Used internally to resolve platform-adaptive modifiers like 'Mod' (Command on Mac, Control elsewhere) and for platform-specific hotkey formatting.
"mac" | "windows" | "linux"
The detected platform: 'mac', 'windows', or 'linux'
Defaults to 'linux' in SSR environments where navigator is undefined
const platform = detectPlatform() // 'mac' | 'windows' | 'linux'
const modifier = resolveModifier('Mod', platform) // 'Meta' on Mac, 'Control' elsewhere