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

Đang mở Phù hợp với người mới
#218 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
80/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
accessibility

Hướng nghiên cứu

Tìm tài liệu về skill trợ năng trong repository và đọc hướng dẫn hiện có về bàn phím. Cập nhật tài liệu để nêu rằng các nút và liên kết tùy chỉnh phải phản hồi phím Enter trên web, đồng thời giải thích cách kiểm thử Enter bằng ánh xạ bàn phím web của Flutter trong một bài kiểm thử widget. Hoàn tất khi cả hai yêu cầu đều được đề cập và các bước kiểm tra CI đều đạt mà không làm giảm độ bao phủ kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
180
Fork
25
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VeryGoodOpenSource/vgv-ai-flutter-plugin

Tất cả issue của VeryGoodOpenSource/vgv-ai-flutter-plugin

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.