Hotkey does not update radio button focus
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.3k
- Forks
- 99
- Merge medio
- 14 h 22 min
- PR fusionados (30 d)
- 6
Descripción
I have a simple Likert scale displayed using radio buttons, with autofocus on the middle button:

If I use the arrow keys to select a different radio button, the focus moves with the selection:

However, if I use a hotkey, the selection changes but the focus remains on the original button:

Is this the desired behaviour? The [radio button test](https://github.com/github/hotkey/blob/cce9678ba673cf856dc967dce1c867edf6c6d4cd/test/test.js#L417) only mentions activating radio buttons, not focusing them, but I expected that a hotkey would behave the same as using the built-in keyboard navigation (tab, arrows).
OS: macOS Sonoma 14.5
Browsers: Safari 17.5 and Brave 1.67.123 (Chromium 126.0.6478.126)
Guía de contribución
Línea de trabajo
Comienza con la prueba de botones de opción en test/test.js alrededor de la línea 417 y reproduce el comportamiento reportado en Safari o Chromium usando botones de opción y un hotkey. Compara la activación mediante hotkey con la navegación nativa mediante las teclas de flecha; se considera terminado cuando el comportamiento de foco esperado esté decidido y representado por la cobertura de pruebas pertinente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100