Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/deps/cli.ts>GenericPrompt#isKey

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
method GenericPrompt.prototype.isKey
Re-export
import { GenericPrompt } from "https://deno.land/x/actionify@0.3.0/src/deps/cli.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: KeyCode

Key event.

Returns

boolean