Skip to content

feat: support tab navigation for form fields#45

Merged
shikaan merged 1 commit intomainfrom
feat/27-field-navigation-with-tab
Feb 28, 2026
Merged

feat: support tab navigation for form fields#45
shikaan merged 1 commit intomainfrom
feat/27-field-navigation-with-tab

Conversation

@shikaan
Copy link
Copy Markdown
Owner

@shikaan shikaan commented Feb 28, 2026

Closes #27

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Tab / Shift+Tab keyboard focus traversal for TUI form fields, aligning the app with common form navigation behavior.

Changes:

  • Extend WithFocusables.HandleEvent to treat Tab like “next field” and Backtab (Shift+Tab) like “previous field”.
  • Add an end-to-end test covering forward/backward tabbing and wrap-around behavior in the entry form.
  • Add a build-debug Makefile target for compiling with debug-friendly Go flags.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tui/components/focusable.go Maps Tab/Backtab into the existing focus-movement logic used by form containers.
test/tui_test.go Adds an e2e regression test verifying Tab + Shift+Tab field navigation and wrap-around.
Makefile Adds a build-debug target and updates build target description/output text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shikaan shikaan merged commit 32fb8e3 into main Feb 28, 2026
5 checks passed
@shikaan shikaan deleted the feat/27-field-navigation-with-tab branch February 28, 2026 20:03
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.

Field navigation with [TAB] and [S-TAB]

2 participants