Skip to content

[macos] fix Tab navigation in new worktree sheet#14

Merged
nicosuave merged 1 commit intosidequery:mainfrom
bvolpato-dd:bv/fix-worktree-sheet-tab-nav
Feb 26, 2026
Merged

[macos] fix Tab navigation in new worktree sheet#14
nicosuave merged 1 commit intosidequery:mainfrom
bvolpato-dd:bv/fix-worktree-sheet-tab-nav

Conversation

@bvolpato-dd
Copy link
Copy Markdown

Summary

  • The "Create branch" Toggle in the new worktree sheet was unreachable via Tab key — focus would bounce between Branch and Base fields, skipping the checkbox entirely.
  • Adds .focusable() to the Toggle so the full Tab cycle works: Branch → Base → Create branch → Cancel → Create.

Changes

  • Single .focusable() modifier on the Toggle in CreateWorktreeSheet. SwiftUI on macOS doesn't include Toggle in the keyboard focus cycle by default.

Testing

  • Open Ghostree → sidebar → click "New worktree…" → press Tab repeatedly.
  • Before: focus cycles only between Branch and Base.
  • After: focus traverses Branch → Base → Create branch toggle → Cancel → Create.

Did this cause any problems?

Rollback/revert this commit and redeploy the service.

Made with Cursor

The Toggle in CreateWorktreeSheet was not reachable via Tab
because SwiftUI does not include Toggle in the keyboard
focus cycle by default on macOS. Adding .focusable() lets
Tab traverse Branch → Base → Create branch → Cancel → Create.

Made-with: Cursor
@nicosuave nicosuave merged commit f22ee8e into sidequery:main Feb 26, 2026
58 checks passed
@nicosuave
Copy link
Copy Markdown
Member

Thanks!

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.

2 participants