MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createKey

Function createKey

packages/cli/src/ui/keyMatchers.test.ts:14–22  ·  view source on GitHub ↗
(name: string, mods: Partial<Key> = {})

Source from the content-addressed store, hash-verified

12
13describe('keyMatchers', () => {
14 const createKey = (name: string, mods: Partial<Key> = {}): Key => ({
15 name,
16 ctrl: false,
17 meta: false,
18 shift: false,
19 paste: false,
20 sequence: name,
21 ...mods,
22 });
23
24 // Original hard-coded logic (for comparison)
25 const originalMatchers: Record<Command, (key: Key) => boolean> = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected