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

Abierto Apto para principiantes
#218 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
80/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
dart, flutter

Línea de trabajo

Encuentra la documentación de la skill de accesibilidad en el repositorio y lee las indicaciones existentes sobre el uso del teclado. Actualízala para indicar que los botones y enlaces personalizados deben responder a Enter en la web, y explica cómo probar Enter mediante la asignación de teclado web de Flutter en una prueba de widget. La tarea estará completa cuando se cubran ambos requisitos y las comprobaciones de CI pasen sin reducir la cobertura de las pruebas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Shell
Estrellas
180
Forks
25
Merge medio
1 d 7 h
PR fusionados (30 d)
17

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de VeryGoodOpenSource/vgv-ai-flutter-plugin

Todos los issues de VeryGoodOpenSource/vgv-ai-flutter-plugin

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.