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

未关闭
#532 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
24
派生
36
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FreeCAD/AddonManager 的其他 Issue

查看 FreeCAD/AddonManager 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。