function convertToModFormat(hotkey, platform): Hotkey;
Defined in: parse.ts:345
Converts a hotkey string to use 'Mod' format for portability.
On macOS, converts 'Meta' to 'Mod'. On Windows/Linux, converts 'Control' to 'Mod'. This enables cross-platform hotkey definitions that work consistently.
The hotkey string to convert
Hotkey | string & object
The target platform (defaults to auto-detection)
"mac" | "windows" | "linux"
The hotkey string with 'Mod' format applied
convertToModFormat('Meta+S', 'mac') // 'Mod+S'
convertToModFormat('Control+S', 'windows') // 'Mod+S'
convertToModFormat('Control+Meta+S', 'mac') // 'Control+Meta+S' (both present, no conversion)