Module

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

🔥 Static site generator for Deno 🦕
Very Popular
Latest
method GenericPrompt.prototype.isKey
import { GenericPrompt } from "https://dotland.deno.dev/x/lume@v2.4.2/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