Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/gauntlet/imports/happy_dom.ts>KeyboardEvent

Work-in-progress front-end tool which does put a smile on my face
Latest
class KeyboardEvent
extends UIEvent
Re-export
import { KeyboardEvent } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Constructors

new
KeyboardEvent(type: string, eventInit?: IKeyboardEventInit)

Constructor.

Properties

readonly
altKey: boolean
readonly
code: string
readonly
ctrlKey: boolean
readonly
isComposing: boolean
readonly
key: string
readonly
location: number
readonly
metaKey: boolean
readonly
repeat: boolean
readonly
shiftKey: boolean

Static Properties

DOM_KEY_LOCATION_LEFT: number
DOM_KEY_LOCATION_NUMPAD: number
DOM_KEY_LOCATION_RIGHT: number
DOM_KEY_LOCATION_STANDARD: number