Skip to content

Fix keyboard focus in app dialogs #916

Closed

Description

@currentbits

Audit Solenta modal keyboard behavior, starting with src/components/SettingsModal.tsx and src/components/onboarding/OnboardingModal.tsx. Both use div role=dialog aria-modal=true, but opening Settings leaves focus on the background trigger (confirmed with the existing mounted DOM harness). Provide initial focus, containment while open, and focus restoration on close. Prefer existing or native platform mechanisms; account for nested dialogs such as onboarding opening Add Project. Inspect src/useEscapeClose.ts and its callers for Escape handling. Add focused regression checks and verify real browser keyboard behavior when tools are available. Avoid unrelated visual redesign.

Filed from a Solenta suggested-work chip.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 5, 2026
  2. currentbits commented on Sep 5, 2026

    @currentbits
    OwnerAuthor

    Wired useModalFocus (initial focus, Tab cycle, restore) into Settings, onboarding, KeyboardSheet, WorkflowsModal, AddProjectPathModal, and EditProjectModal. Nested confirm dialogs are still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions