MCPcopy Create free account
hub / github.com/codeaashu/claude-code / formatShortcut

Function formatShortcut

src/components/PromptInput/PromptInputHelpMenu.tsx:13–15  ·  view source on GitHub ↗

Format a shortcut for display in the help menu (e.g., "ctrl+o" → "ctrl + o")

(shortcut: string)

Source from the content-addressed store, hash-verified

11
12/** Format a shortcut for display in the help menu (e.g., "ctrl+o""ctrl + o") */
13function formatShortcut(shortcut: string): string {
14 return shortcut.replace(/\+/g, ' + ');
15}
16type Props = {
17 dimColor?: boolean;
18 fixedWidth?: boolean;

Callers 1

PromptInputHelpMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected