( event: KeyboardEvent, platform: 'mac' | 'windows' | 'linux' = detectPlatform(), )
| 290 | * @param platform - Target platform for `Mod` eligibility |
| 291 | */ |
| 292 | export function normalizeHotkeyFromEvent( |
| 293 | event: KeyboardEvent, |
| 294 | platform: 'mac' | 'windows' | 'linux' = detectPlatform(), |
| 295 | ): Hotkey { |
| 296 | return normalizedHotkeyStringFromParsed(parseKeyboardEvent(event), platform) |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * Checks if a hotkey or ParsedHotkey contains at least one non-modifier key. |
no test coverage detected
searching dependent graphs…