feat: cover Enter on the web for custom buttons in the accessibility skill

未关闭 适合新手
#218 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
80/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
dart, flutter
领域
accessibility

调研方向

在仓库中找到无障碍 skill 文档,并阅读现有的键盘操作指南。更新文档,说明自定义按钮和链接在 Web 上必须响应 Enter,并解释如何在 widget 测试中使用 Flutter 的 Web 键盘映射测试 Enter。两项要求都得到覆盖,且 CI 检查通过、测试覆盖率没有降低,即为完成。

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

描述

feature
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

环境准备

从这里开始

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

VeryGoodOpenSource/vgv-ai-flutter-plugin 的其他 Issue

查看 VeryGoodOpenSource/vgv-ai-flutter-plugin 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

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