Skip to main content
Module

x/cliffy/keycode/key_code.ts>KeyCode

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
interface KeyCode
import { type KeyCode } from "https://deno.land/x/cliffy@v1.0.0-rc.4/keycode/key_code.ts";

KeyCode object.

Properties

optional
name: string

Key name.

optional
sequence: string

Key sequence.

optional
code: string

Key code.

optional
ctrl: boolean

Indicates if the ctrl key is pressed.

optional
meta: boolean

Indicates if the meta key is pressed.

optional
shift: boolean

Indicates if the shift key is pressed.

optional
char: string

Key string value.