mozilla / mozilla/pdf.js

[Feature]: Keyboard navigation in table of contents

Open
#20,962 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature ux viewer
Dominant language
JavaScript
Stars
53.9k
Forks
10.7k
Avg merge
18h 38m
Merged PRs (30d)
130

Description

Is the feature relevant to the Firefox PDF Viewer?

Yes

Feature description

I'd find it useful if the ToC has support for keyboard navigation, for example, right arrow for expanding a tree where I'm on, and left arrow collapsing and jump to parent etc. This way, I can navigate up the hierarchy without scrolling up, locating the parent, and collapse via mouse.

I can't recall if this was supported if this supported before the recent UX redesign. This is something that occurred to me while I was viewing a PDF ToC that had a rather high fan count and nesting (on Firefox 148.0.2).

Other PDF viewers

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Firefox PDF Viewer table-of-contents implementation and its existing focus or keyboard handling. Check how nested entries are expanded and collapsed, then verify right-arrow expansion, left-arrow collapse, and moving to the parent through focused manual tests or the relevant viewer test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.