MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / keystrokeToString

Function keystrokeToString

source code/keybindings/parser.ts:91–102  ·  view source on GitHub ↗
(ks: ParsedKeystroke)

Source from the content-addressed store, hash-verified

89 * Convert a ParsedKeystroke to its canonical string representation for display.
90 */
91export function keystrokeToString(ks: ParsedKeystroke): string {
92 const parts: string[] = []
93 if (ks.ctrl) parts.push('ctrl')
94 if (ks.alt) parts.push('alt')
95 if (ks.shift) parts.push('shift')
96 if (ks.meta) parts.push('meta')
97 if (ks.super) parts.push('cmd')
98 // Use readable names for display
99 const displayKey = keyToDisplayName(ks.key)
100 parts.push(displayKey)
101 return parts.join('+')
102}
103
104/**
105 * Map internal key names to human-readable display names.

Callers

nothing calls this directly

Calls 1

keyToDisplayNameFunction · 0.85

Tested by

no test coverage detected