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

x/tui/src/keyboard.ts>handleKeypresses

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
function handleKeypresses
import { handleKeypresses } from "https://deno.land/x/tui@1.3.4/src/keyboard.ts";

Intercepts keypresses from readKeypress() and dispatch them as events to tui that way keyPress, multiKeyPress and mousePress events work

Returns

Promise<void>