Skip to main content
Deno 2 is finally here 🎉️
Learn more
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
Re-export
import { GenericPrompt } from "https://deno.land/x/cliffy@v0.17.0/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: KeyEvent

Key event.

Returns

boolean