MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / matches

Method matches

packages/pi-tui/src/keybindings.ts:194–200  ·  view source on GitHub ↗
(data: string, keybinding: Keybinding)

Source from the content-addressed store, hash-verified

192 }
193
194 matches(data: string, keybinding: Keybinding): boolean {
195 const keys = this.keysById.get(keybinding) ?? [];
196 for (const key of keys) {
197 if (matchesKey(data, key)) return true;
198 }
199 return false;
200 }
201
202 getKeys(keybinding: Keybinding): KeyId[] {
203 return [...(this.keysById.get(keybinding) ?? [])];

Callers 7

capabilityFromCatalogFunction · 0.80
handleInputMethod · 0.80
handleInputMethod · 0.80
handleInputMethod · 0.80
handleInputMethod · 0.80
handleInputMethod · 0.80

Calls 2

matchesKeyFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected