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

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

An application installer for restriced macOS
Go to Latest
method cliffy.GenericPrompt.prototype.isKey
Re-export
import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/deps.ts";
const { GenericPrompt } = cliffy;

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