MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getBindingDisplayText

Function getBindingDisplayText

src/keybindings/resolver.ts:67–77  ·  view source on GitHub ↗
(
  action: string,
  context: KeybindingContextName,
  bindings: ParsedBinding[],
)

Source from the content-addressed store, hash-verified

65 * Searches in reverse order so user overrides take precedence.
66 */
67export function getBindingDisplayText(
68 action: string,
69 context: KeybindingContextName,
70 bindings: ParsedBinding[],
71): string | undefined {
72 // Find the last binding for this action in this context
73 const binding = bindings.findLast(
74 b => b.action === action && b.context === context,
75 )
76 return binding ? chordToString(binding.chord) : undefined
77}
78
79/**
80 * Build a ParsedKeystroke from Ink's input/key.

Callers 2

getShortcutDisplayFunction · 0.85
KeybindingProviderFunction · 0.85

Calls 1

chordToStringFunction · 0.85

Tested by

no test coverage detected