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

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

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.KeyboardEvent
implements UIEvent
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { KeyboardEvent } = dom;

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