Skip to content

fix(desktop): make inline file references behave like links for keyboard users #4062

Open

Description

@LHagfoss

Since #4054 a file reference in apps/desktop/src/ui/Markdown.tsx is <span role="link" tabIndex={0}> and its keydown handler opens it on Enter and Space. Links activate on Enter only; Space should scroll. The pill also has no focus-visible style, so tabbing onto it shows nothing.

Fix: handle Enter only; add a focus-visible outline (accent, like other controls).

Acceptance: Tab shows a visible ring on the reference; Enter opens it; Space does not.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions