Skip to main content
Module

x/tui/src/keyboard.ts>handleKeyboardControls

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

handleKeypresses() has to be called in order for this function to work. CTRL+Arrows moves focus in appropriate direction. CTRL+F keys switches between views, to get back to default press the same CTRL+F key again. Just Enter (Return) calls interact("keyboard") on focused component. It's up to component how it handles it.