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

Function getBindingDisplayText

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

Source from the content-addressed store, hash-verified

67 * Searches in reverse order so user overrides take precedence.
68 */
69export function getBindingDisplayText(
70 action: string,
71 context: KeybindingContextName,
72 bindings: ParsedBinding[],
73): string | undefined {
74 // Find the last binding for this action in this context
75 const binding = bindings.findLast(
76 b => b.action === action && b.context === context,
77 )
78 return binding ? chordToString(binding.chord) : undefined
79}
80
81/**
82 * 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