opentui-keyboard

Handle keyboard events, focus, and shortcuts in OpenTUI applications.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/nthplusio/functional-claude --skill opentui-keyboard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opentui-keyboard
Source: https://github.com/nthplusio/functional-claude/tree/main/plugins/opentui-dev/skills/opentui-keyboard
Command: npx skills add https://github.com/nthplusio/functional-claude --skill opentui-keyboard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenTUI keyboard handling is essential for reliable terminal user interfaces; this skill provides a structured approach to capturing and responding to key events, focus changes, and shortcuts across OpenTUI environments.

Core Features & Use Cases

  • Unified keyboard primitives: defines KeyEvent structures and consistent modifier handling for React, Solid, and Core renderers.
  • Focus-aware shortcuts: supports global vs. focused input shortcuts to prevent conflicts in TUIs.
  • Pattern-driven navigation: includes patterns for menus, editors, and forms with predictable keyboard interactions.
  • Real-world usage: ideal for building CLI applications with robust keyboard navigation, hotkeys, and accessible UX.

Quick Start

Install the OpenTUI keyboard utilities in your project and start wiring useKeyboard in your component or renderer to respond to key events (e.g., escape to quit, arrows for navigation).

Frequently Asked Questions about opentui-keyboard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle keyboard input and focus management in OpenTUI apps?

You handle keyboard input in OpenTUI apps by using the unified KeyEvent structure and focus management patterns provided by this skill. It supports consistent key event capturing and modifier handling across React, Solid, and Core renderers.

Can I use React and Solid to manage terminal UI key events?

Yes, you can use React and Solid to manage terminal UI key events. This skill applies across React, Solid, and Core renderers to capture key events, handle modifiers, and manage focus within your CLI applications.

What is the best way to prevent global vs. focused input shortcut conflicts in a TUI?

The best way to prevent shortcut conflicts in a TUI is to use focus-aware shortcuts. This skill supports defining global versus focused input shortcuts, ensuring predictable keyboard interactions for menus, editors, and forms.

How do I implement pattern-driven navigation for CLI applications?

You implement pattern-driven CLI navigation by applying the structural patterns included in this skill. It offers predictable keyboard interaction patterns specifically designed for building menus, editors, and forms in terminal user interfaces.

Does OpenTUI keyboard handling support modifier keys and structured key events?

Yes, OpenTUI keyboard handling fully supports modifier keys. It specifies a comprehensive KeyEvent structure that defines consistent modifier handling, allowing you to reliably respond to complex key combinations and shortcuts.