Normalization & format API Reference

normalizeHotkeyFromEvent

Function: normalizeHotkeyFromEvent()

ts
function normalizeHotkeyFromEvent(event, platform): Hotkey;
function normalizeHotkeyFromEvent(event, platform): Hotkey;

Defined in: parse.ts:292

Normalizes a keyboard event to the same canonical hotkey string as normalizeHotkey.

Parameters

event

KeyboardEvent

The keyboard event (typically keydown)

platform

Target platform for Mod eligibility

"mac" | "windows" | "linux"

Returns

Hotkey