Skip to content

Add focus management system with customizable key bindings#37

Merged
meszmate merged 2 commits intomainfrom
feature/focus-management
Mar 4, 2026
Merged

Add focus management system with customizable key bindings#37
meszmate merged 2 commits intomainfrom
feature/focus-management

Conversation

@meszmate
Copy link
Owner

@meszmate meszmate commented Mar 4, 2026

  • Add FocusGroup component for Tab/Shift+Tab cycling between focusable components
  • Add FocusStyle helper for focus-aware border rendering
  • Add KeyBind struct with fully customizable navigation keys (arrows, vim, modifiers)
  • Add isFocusable comptime protocol check
  • Add focusable protocol to List, Confirm, and FilePicker components
  • Add focus_form example demonstrating Tab cycling with 3 text inputs
  • Add 26+ unit tests covering cycling, wrapping, custom keys, and modifier matching
  • Update README with focus management docs and custom key binding examples

@meszmate meszmate merged commit 41f4922 into main Mar 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant