MCPcopy Create free account
hub / github.com/TanStack/hotkeys / formatParsedHotkey

Function formatParsedHotkey

packages/hotkeys/src/match.ts:249–259  ·  view source on GitHub ↗

* Formats a ParsedHotkey back to a hotkey string. * Used internally to provide the hotkey string in callback context.

(parsed: ParsedHotkey)

Source from the content-addressed store, hash-verified

247 * Used internally to provide the hotkey string in callback context.
248 */
249function formatParsedHotkey(parsed: ParsedHotkey): Hotkey {
250 const parts: Array<string> = []
251
252 if (parsed.ctrl) parts.push('Control')
253 if (parsed.alt) parts.push('Alt')
254 if (parsed.shift) parts.push('Shift')
255 if (parsed.meta) parts.push('Meta')
256 parts.push(parsed.key)
257
258 return parts.join('+') as Hotkey
259}

Callers 1

createHotkeyHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…