feat: cover Enter on the web for custom buttons in the accessibility skill
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 80/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- dart, flutter
调研方向
在仓库中找到无障碍 skill 文档,并阅读现有的键盘操作指南。更新文档,说明自定义按钮和链接在 Web 上必须响应 Enter,并解释如何在 widget 测试中使用 Flutter 的 Web 键盘映射测试 Enter。两项要求都得到覆盖,且 CI 检查通过、测试覆盖率没有降低,即为完成。
由索引模型根据 Issue 内容生成。
描述
Description
The accessibility skill does a good job on keyboard access. It steers away from pointer-only widgets and asks for controls that keyboard users can reach. One case it doesn't cover yet is custom buttons that register their own keyboard actions.
On Flutter web, Space and Enter trigger different actions. Space works for a custom button out of the box, but Enter only works if the button also handles the web-specific action. So a custom button can work with Space in the browser while Enter does nothing.
Widget tests don't catch this, because they run with the keyboard mapping of other platforms, where both keys trigger the same action. A test that presses Enter passes even when Enter is broken in the browser.
The suggestion is to add this case to the skill, so custom buttons and links are checked for Enter on the web and tested the way the web handles it.
Requirements
- The accessibility skill says custom buttons and links must respond to Enter on the web, not just Space.
- The skill explains how to test Enter with the web keyboard mapping in a widget test.
- All CI/CD checks are passing.
- There is no drop in the test coverage percentage.
Additional Context
Flutter's default web shortcuts map Space to ActivateIntent and Enter to ButtonActivateIntent. Other platforms map both keys to ActivateIntent.
- 主要语言
- Shell
- 星标
- 180
- 派生
- 25
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
VeryGoodOpenSource/vgv-ai-flutter-plugin 的其他 Issue
-
feature
难度 2/5 1-3 小时 新手友好度 76/100
VeryGoodOpenSource/vgv-ai-flutter-plugin#219 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation good first issue p1
难度 2/5 1-3 小时 新手友好度 64/100
VeryGoodOpenSource/vgv-ai-flutter-plugin#217 · 1 条评论 ·
维护者通常 1 天内回复
-
bug p1
难度 2/5 1-3 小时 新手友好度 72/100
VeryGoodOpenSource/vgv-ai-flutter-plugin#214 · 1 条评论 ·
维护者通常 1 天内回复
-
bug p1
难度 2/5 1-3 小时 新手友好度 72/100
VeryGoodOpenSource/vgv-ai-flutter-plugin#213 · 1 条评论 ·
维护者通常 1 天内回复
-
bug p1
难度 3/5 1-2 天 新手友好度 55/100
VeryGoodOpenSource/vgv-ai-flutter-plugin#216 · 1 条评论 ·
维护者通常 1 天内回复
查看 VeryGoodOpenSource/vgv-ai-flutter-plugin 的全部 Issue
相似的 Issue
-
bug needs triage
难度 1/5 1 小时以内 新手友好度 84/100
smallstep/certificates#2863 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
bug task
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
difficulty:easy func:packaging os:linux prio:low type:bug
难度 1/5 1 小时以内 新手友好度 86/100
NatronGitHub/Natron#2027 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 1/5 1 小时以内 新手友好度 86/100
julianleno/cortai#7 ·