[Feature]: Keyboard navigation in table of contents
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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