MCPcopy Index your code
hub / github.com/anomalyco/opencode / formatKeybind

Function formatKeybind

packages/app/src/context/command.tsx:224–228  ·  view source on GitHub ↗
(config: string, t?: (key: KeyLabel) => string)

Source from the content-addressed store, hash-verified

222}
223
224export function formatKeybind(config: string, t?: (key: KeyLabel) => string): string {
225 const parts = formatKeybindParts(config, t)
226 if (parts.length === 0) return ""
227 return IS_MAC ? parts.join("") : parts.join("+")
228}
229
230// KeybindV2 takes an array instead of a string
231export function formatKeybindKeys(config: string, t?: (key: KeyLabel) => string): string[] {

Callers 4

DialogSelectFileFunction · 0.90
handleFunction · 0.90
keybindFunction · 0.85

Calls 1

formatKeybindPartsFunction · 0.85

Tested by

no test coverage detected