[PR #137] feat: add FocusManager for keyboard navigation #318

Open
opened 2026-03-02 23:45:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/137
Author: @ReverseGem7
Created: 9/4/2025
Status: 🔄 Open

Base: mainHead: tabindex


📝 Commits (10+)

  • 5d39427 tabindex
  • f03e13c Remove console log in FocusManager
  • 5d91425 Run prettier
  • 6d87444 Update the YGTreeWalker to reset its current node on tree changes
  • 0fe4ec3 Remove unused console log
  • c521525 Merge branch 'sst:main' into tabindex
  • 7d70482 remove unused imports and variables in input-select-layout-demo
  • 1d5d719 Add focusKeyHandler config to createCliRenderer
  • b25d550 remove keyboard navigation on CliRenderer.destroy
  • dd44a03 Implement focusedRenderable in RenderContext

📊 Changes

10 files changed (+340 additions, -98 deletions)

View changed files

📝 packages/core/src/Renderable.ts (+9 -1)
📝 packages/core/src/examples/index.ts (+9 -1)
📝 packages/core/src/examples/input-demo.ts (+0 -46)
📝 packages/core/src/examples/input-select-layout-demo.ts (+3 -41)
📝 packages/core/src/examples/lib/standalone-keys.ts (+4 -0)
packages/core/src/examples/nested-input-tree.ts (+136 -0)
packages/core/src/lib/FocusManager.ts (+118 -0)
📝 packages/core/src/lib/index.ts (+1 -0)
📝 packages/core/src/renderer.ts (+56 -7)
📝 packages/core/src/types.ts (+4 -2)

📄 Description

https://github.com/user-attachments/assets/2156d04a-3a69-478b-82b2-424aab950128


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/137 **Author:** [@ReverseGem7](https://github.com/ReverseGem7) **Created:** 9/4/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `tabindex` --- ### 📝 Commits (10+) - [`5d39427`](https://github.com/anomalyco/opentui/commit/5d394271f49df8fcea9730ed45b18ae0acdf2bbb) tabindex - [`f03e13c`](https://github.com/anomalyco/opentui/commit/f03e13c52c9f8d0a9071fef8585a3f1e636e3a63) Remove console log in FocusManager - [`5d91425`](https://github.com/anomalyco/opentui/commit/5d914258ea7375dbef5e83a358dded01f79afccd) Run prettier - [`6d87444`](https://github.com/anomalyco/opentui/commit/6d874443f8f504001a8411c5af9523af8d99d8cd) Update the YGTreeWalker to reset its current node on tree changes - [`0fe4ec3`](https://github.com/anomalyco/opentui/commit/0fe4ec35f325c6cce40d3386c7daad21a0b52dd9) Remove unused console log - [`c521525`](https://github.com/anomalyco/opentui/commit/c521525e8e669cc50a92b22895cd1cbd0ab87347) Merge branch 'sst:main' into tabindex - [`7d70482`](https://github.com/anomalyco/opentui/commit/7d704829b77ef62e058a3d15877225111d04634f) remove unused imports and variables in input-select-layout-demo - [`1d5d719`](https://github.com/anomalyco/opentui/commit/1d5d71954e784894c49edd099ad7ec8da4185a14) Add focusKeyHandler config to createCliRenderer - [`b25d550`](https://github.com/anomalyco/opentui/commit/b25d5507bc70fb8d37d482bfceb0cc2da0216ade) remove keyboard navigation on CliRenderer.destroy - [`dd44a03`](https://github.com/anomalyco/opentui/commit/dd44a03e46cca30e34872d98ab596b96d48fa7d2) Implement focusedRenderable in RenderContext ### 📊 Changes **10 files changed** (+340 additions, -98 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/Renderable.ts` (+9 -1) 📝 `packages/core/src/examples/index.ts` (+9 -1) 📝 `packages/core/src/examples/input-demo.ts` (+0 -46) 📝 `packages/core/src/examples/input-select-layout-demo.ts` (+3 -41) 📝 `packages/core/src/examples/lib/standalone-keys.ts` (+4 -0) ➕ `packages/core/src/examples/nested-input-tree.ts` (+136 -0) ➕ `packages/core/src/lib/FocusManager.ts` (+118 -0) 📝 `packages/core/src/lib/index.ts` (+1 -0) 📝 `packages/core/src/renderer.ts` (+56 -7) 📝 `packages/core/src/types.ts` (+4 -2) </details> ### 📄 Description https://github.com/user-attachments/assets/2156d04a-3a69-478b-82b2-424aab950128 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#318
No description provided.