MCPcopy Create free account
hub / github.com/anomalyco/opencode / keyText

Function keyText

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

Source from the content-addressed store, hash-verified

33 | "common.key.esc"
34
35function keyText(key: KeyLabel, t?: (key: KeyLabel) => string) {
36 return t ? t(key) : en[key]
37}
38
39function actionId(id: string) {
40 if (!id.startsWith(SUGGESTED_PREFIX)) return id

Callers 1

displayKeybindPartsFunction · 0.85

Calls 1

tFunction · 0.50

Tested by

no test coverage detected