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

x/deno/cli/tsc/dts/lib.dom.d.ts>onkeydown

A modern runtime for JavaScript and TypeScript.
Go to Latest
variable onkeydown
import { onkeydown } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.dom.d.ts";

Fires when the user presses a key.

type

((this: Window, ev: KeyboardEvent) => any) | null