Module

x/cliffy/prompt/mod.ts>GenericPrompt#isKey

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method GenericPrompt.prototype.isKey
import { GenericPrompt } from "https://dotland.deno.dev/x/cliffy@v0.22.2/prompt/mod.ts";

Check if key event has given name or sequence.

Type Parameters

K extends unknown
N extends keyof K

Parameters

keys: K | undefined

Key map.

name: N

Key name.

event: KeyCode

Key event.

Returns

boolean