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

x/cliffy/keycode/mod.ts>KeyCode

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
interface KeyCode
import { type KeyCode } from "https://deno.land/x/cliffy@v1.0.0-rc.2/keycode/mod.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.