Skip to main content
Module

x/cliffy/keypress/mod.ts>KeyPressEvent

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
class KeyPressEvent
extends Event
import { KeyPressEvent } from "https://deno.land/x/cliffy@v1.0.0-rc.4/keypress/mod.ts";

Keypress event.

Constructors

new
KeyPressEvent(type: KeyPressEventType, eventInitDict: KeyPressEventInit)

Properties

readonly
altKey: boolean

Indicates if the alt key is pressed.

readonly
optional
char: string

Key string value.

readonly
optional
code: string

Key code.

readonly
ctrlKey: boolean

Indicates if the ctrl key is pressed.

readonly
optional
key: string

Key name.

readonly
metaKey: boolean

Indicates if the meta key is pressed.

readonly
repeat: boolean

Indicates if the key was pressed multiple times.

readonly
optional
sequence: string

Key sequence.

readonly
shiftKey: boolean

Indicates if the shift key is pressed.