Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface keyboardKey
import { type keyboardKey } from "https://deno.land/x/fresh_testing_library@0.13.1/deps/testing-library.ts";

Properties

optional
code: string

Physical location on a keyboard

optional
key: string

Character or functional key descriptor

optional
location: DOM_KEY_LOCATION

Location on the keyboard for keys with multiple representation

optional
altGr: boolean

Does the character in key require/imply AltRight to be pressed?

optional
shift: boolean

Does the character in key require/imply a shiftKey to be pressed?