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

Method pressKey

packages/cli/src/ui/hooks/useKeypress.test.ts:93–99  ·  view source on GitHub ↗
(key: Partial<Key>)

Source from the content-addressed store, hash-verified

91
92 // Helper to simulate a single keypress event.
93 pressKey(key: Partial<Key>) {
94 if (this.isLegacy) {
95 this.emit('data', Buffer.from(key.sequence ?? ''));
96 } else {
97 this.emit('keypress', null, key);
98 }
99 }
100}
101
102describe('useKeypress', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected