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

x/lume/deps/cliffy.ts>GenericPrompt#isKey

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
method GenericPrompt.prototype.isKey
Re-export
import { GenericPrompt } from "https://deno.land/x/lume@v1.16.1/deps/cliffy.ts";

Check if key event has given name or sequence.

Type Parameters

TKey extends unknown
TName extends keyof TKey

Parameters

keys: TKey | undefined

Key map.

name: TName

Key name.

event: KeyCode

Key event.

Returns

boolean