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

x/evt/lib/types/lib.dom.ts>KeyboardEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface KeyboardEvent
implements UIEvent
import { type KeyboardEvent } from "https://deno.land/x/evt@v2.4.20/lib/types/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
deprecated
char: string
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