(hotkey: string, platform?: string | undefined)
| 80 | * @returns {string} normalized representation of the given hotkey string |
| 81 | */ |
| 82 | export function normalizeHotkey(hotkey: string, platform?: string | undefined): NormalizedHotkeyString { |
| 83 | let result: string |
| 84 | result = localizeMod(hotkey, platform) |
| 85 | result = sortModifiers(result) |
| 86 | return result as NormalizedHotkeyString |
| 87 | } |
| 88 | |
| 89 | const matchApplePlatform = /Mac|iPod|iPhone|iPad/i |
| 90 |
no test coverage detected