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

x/pptr/mod.ts>Keyboard#down

Headless Chrome Deno API
Latest
method Keyboard.prototype.down
Re-export
import { Keyboard } from "https://deno.land/x/pptr@1.2.0/mod.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>