Skip to main content

normalizeHotkeyFromEvent

还没翻译译自英文(tanstack.com)本页 12 段都还没译

function normalizeHotkeyFromEvent(event, platform?): Hotkey;

Defined in: parse.ts:309

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

Parameters

event

KeyboardEvent

The keyboard event (typically keydown)

platform?

"mac" | "windows" | "linux"

Target platform for Mod eligibility

Returns

Hotkey