Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>KeyboardEvent

Deno Standard Extensions
Go to Latest
interface KeyboardEvent
implements UIEvent
import { type KeyboardEvent } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.

Properties

readonly
altKey: boolean
readonly
deprecated
charCode: number
readonly
code: string
readonly
ctrlKey: boolean
readonly
isComposing: boolean
readonly
key: string
readonly
deprecated
keyCode: number
readonly
location: number
readonly
metaKey: boolean
readonly
repeat: boolean
readonly
shiftKey: boolean
readonly
DOM_KEY_LOCATION_LEFT: number
readonly
DOM_KEY_LOCATION_NUMPAD: number
readonly
DOM_KEY_LOCATION_RIGHT: number
readonly
DOM_KEY_LOCATION_STANDARD: number

Methods

getModifierState(keyArg: string): boolean
deprecated
initKeyboardEvent(
typeArg: string,
bubblesArg?: boolean,
cancelableArg?: boolean,
viewArg?: Window | null,
keyArg?: string,
locationArg?: number,
ctrlKey?: boolean,
altKey?: boolean,
shiftKey?: boolean,
metaKey?: boolean,
): void