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
Latest
method GenericPrompt.prototype.isKey
Re-export
import { GenericPrompt } from "https://deno.land/x/lume@v2.4.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