gpui-focus-handle
CommunityNavigate GPUI with keyboard focus.
Software Engineering#accessibility#gpui#keyboard-navigation#focus-handle#focus-management#on_focus#on_blur
Authorzerx-lab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
GPUI focus management ensures keyboard navigation and focus tracking across focusable elements, enabling accessible and predictable user interfaces.
Core Features & Use Cases
- FocusHandle: A reference to a focusable element that persists across renders.
- Focus Tracking: Keeps track of the current focused element and updates UI accordingly.
- Keyboard Navigation: Supports Tab/Shift-Tab traversal and focus events (on_focus, on_blur).
- Use Case: Build a dialog or form where focus is trapped within the container and returns to the prior element when closed.
Quick Start
Create a FocusHandle in your component: let focus_handle = cx.focus_handle(); Attach to elements: div().track_focus(&focus_handle); Respond to focus: .on_focus(cx.listener(|this, _event, cx| { /* handle focus */ }))
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gpui-focus-handle Download link: https://github.com/zerx-lab/rmx/archive/main.zip#gpui-focus-handle Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.