Skip to content

fix(hig): initial focus and Escape dismissal for activation, token, and review sheets (#1490)#1511

Merged
datlechin merged 2 commits into
mainfrom
a11y/sheet-focus
May 30, 2026
Merged

fix(hig): initial focus and Escape dismissal for activation, token, and review sheets (#1490)#1511
datlechin merged 2 commits into
mainfrom
a11y/sheet-focus

Conversation

@datlechin

Copy link
Copy Markdown
Member

Part of #1490 (keyboard, focus, accessibility). The sheet follow-ups deferred from #1502.

  • LicenseActivationSheet: @FocusState + .defaultFocus so the license-key field is focused on open (previously no field was focused).
  • SQLReviewSheet: .onExitCommand { dismiss() } so Escape closes the sheet even when the embedded SourceEditor holds focus (its Done button uses .cancelAction, which Escape couldn't reach from inside the editor).
  • MCPTokenRevealSheet: @FocusState + .defaultFocus on the Done button so Tab order starts deterministically (Done already had .defaultAction).

Native SwiftUI focus APIs only. Lint clean, style gate clean.

datlechin added 2 commits May 30, 2026 14:04
Signed-off-by: Ngô Quốc Đạt <datlechin@gmail.com>
@datlechin datlechin merged commit 80ce27f into main May 30, 2026
4 checks passed
@datlechin datlechin deleted the a11y/sheet-focus branch May 30, 2026 07:04
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