MCPcopy Create free account
hub / github.com/vercel/vercel / keypress

Method keypress

packages/cli/test/mocks/client.ts:290–305  ·  view source on GitHub ↗
(
      key:
        | string
        | {
            name?: string | undefined;
            ctrl?: boolean | undefined;
            meta?: boolean | undefined;
            shift?: boolean | undefined;
          }
    )

Source from the content-addressed store, hash-verified

288
289 events = {
290 keypress(
291 key:
292 | string
293 | {
294 name?: string | undefined;
295 ctrl?: boolean | undefined;
296 meta?: boolean | undefined;
297 shift?: boolean | undefined;
298 }
299 ) {
300 if (typeof key === 'string') {
301 client.stdin.emit('keypress', null, { name: key });
302 } else {
303 client.stdin.emit('keypress', null, key);
304 }
305 },
306 type(text: string) {
307 client.stdin.write(text);
308 for (const char of text) {

Callers 3

configure.test.tsFile · 0.80
playground.test.tsFile · 0.80

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected