Addon Manager is not usable with a screen reader (NVDA) or keyboard only

Open
#532 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start in package_list.py: PackageListItemModel.data() returns nothing for DisplayRole and AccessibleTextRole, and the delegate's paint() ignores option.state. Then check CompositeView.addon_selected(), which hides the focused list without moving focus, and the Enter/Return handling for opening an addon. Done means screen readers announce each item, Enter opens an addon, focus stays visible and is preserved. The author says a pull request for points 1 to 6 is coming, so check with the maintainers before starting; points 7 to 9 need design decisions.

Written by the indexing model from the issue text.

Description

I am a blind FreeCAD user working with the NVDA screen reader on Windows 11. The Addon Manager is currently not usable for me. After reading the source code, here is what causes it:

Blocking

  1. PackageListItemModel.data() (package_list.py) returns nothing for DisplayRole or AccessibleTextRole. Items are painted by the delegate, so screen readers announce every item as empty.
  2. Opening an addon is only connected to clicked (mouse). Enter/Return does nothing.
  3. The list uses NoSelection, so the selected item is never announced, and the delegate's paint() ignores option.state: there is no visible keyboard focus (WCAG 2.4.7).
  4. In expanded/compact view, CompositeView.addon_selected() hides the focused list without moving focus, so keyboard focus is lost.

Major
5. Icon-only buttons have no accessible name: the view selector (tooltip only), sort order button and loading "stop" button (no text, no tooltip), back button (tooltip only), gear menu (announced as the untranslated placeholder "Gear Tools…").
6. The search field (placeholder only), sort and filter combo boxes have no label.
7. The filter combo mixes two criteria with disabled header items and resets to index 0 after each activated signal, which makes arrow-key navigation confusing.
8. Status messages (install finished, restart required, errors) are set on a QLabel and not announced to assistive technologies.
9. Colour contrast in addonmanager_colors.py: the light-theme orange rgb(255,149,0) is 2.2:1 on white (WCAG minimum 4.5:1), the light-theme green is 4.4:1, the dark-theme red is 4.35:1 on #353535. The comment says "7:1".

There is currently no setAccessibleName, AccessibleTextRole or keyboard shortcut anywhere in the repository.

I am submitting a pull request that fixes points 1 to 6. Points 7 to 9 need design decisions from the maintainers.

Dominant language
Python
Stars
24
Forks
36
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from FreeCAD/AddonManager

All issues in FreeCAD/AddonManager

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.