Skip to main content
Module

x/tui/src/key_reader/types.ts>KeyPress

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
interface KeyPress
import { type KeyPress } from "https://deno.land/x/tui@1.3.4/src/key_reader/types.ts";

Interface defining key press issued to stdin

Properties

buffer: Uint8Array | number

Raw data which was sent to stdin

key: Key

Key id

meta: boolean

Whether meta button (most often alt) was pressed/held when key was pressed

shift: boolean

Whether shift button was pressed/held when key was pressed

ctrl: boolean

Whether ctrl button was pressed/held when key was pressed