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

Function matchesBinding

src/keybindings/match.ts:111–120  ·  view source on GitHub ↗
(
  input: string,
  key: Key,
  binding: ParsedBinding,
)

Source from the content-addressed store, hash-verified

109 * For single-keystroke bindings only (Phase 1).
110 */
111export function matchesBinding(
112 input: string,
113 key: Key,
114 binding: ParsedBinding,
115): boolean {
116 if (binding.chord.length !== 1) return false
117 const keystroke = binding.chord[0]
118 if (!keystroke) return false
119 return matchesKeystroke(input, key, keystroke)
120}
121

Callers 1

resolveKeyFunction · 0.85

Calls 1

matchesKeystrokeFunction · 0.85

Tested by

no test coverage detected