(
hotkey: Key | (string & {}),
platform: 'mac' | 'windows' | 'linux' = detectPlatform(),
)
| 195 | * ``` |
| 196 | */ |
| 197 | export function normalizeHotkey( |
| 198 | hotkey: Key | (string & {}), |
| 199 | platform: 'mac' | 'windows' | 'linux' = detectPlatform(), |
| 200 | ): Hotkey { |
| 201 | return normalizedHotkeyStringFromParsed( |
| 202 | parseHotkey(hotkey, platform), |
| 203 | platform, |
| 204 | ) |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Same canonical string as {@link normalizeHotkey}, but from an already-parsed hotkey. |
no test coverage detected
searching dependent graphs…