Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/src/Input.ts>Keyboard#down

Headless Chrome Deno API
Latest
method Keyboard.prototype.down
import { Keyboard } from "https://deno.land/x/pptr@1.2.0/src/Input.ts";

Dispatches a keydown event.

Parameters

  • Name of key to press, such as ArrowLeft. See KeyInput for a list of all key names.
optional
options: { text?: string; } = [UNSUPPORTED]
  • An object of options. Accepts text which, if specified, generates an input event with this text.

Returns

Promise<void>