Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug(DatePicker): keyboard navgiation breaks when a screen reader is used

Aperta
#33,683 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
angular, typescript

Direzione di ricerca

Inizia con gli esempi di datepicker all’indirizzo https://material.angular.dev/components/datepicker/examples e riproduci la navigazione da tastiera in Chrome o Firefox con NVDA o lo screen reader di Windows. Traccia il modo in cui vengono gestiti gli eventi dei tasti freccia in modalità esplorazione; il lavoro è completato quando la navigazione tra i giorni funziona senza dover passare manualmente alla modalità focus, mentre la navigazione continua a funzionare senza uno screen reader.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Accessibility area: material/datepicker P3
Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

When you open the date picker you can easily use the arrow keys to navigate between the days of the month.
But if you use a screen reader (tested with nvda and the integrated one from windows) the arrow keys won't work properly anymore.

The reason is because the screen reader switches to browse mode instead of focus mode and catches the keyboard events. If you switch manually to the focus mode (in nvda its the nvda key + space) it works again.

Reproduction

Just try it in one of the examples at the official site https://material.angular.dev/components/datepicker/examples

  • without screen reader: keyboard navigation works
  • with screen reader: keyboard navigation won't work - you have to switch manually to focus mode
Expected Behavior

I expect the keyboard navigation to work regardless if a screen reader is active or not. It should also not be needed to manually switch to focus mode

Actual Behavior
  • without screen reader: keyboard navigation works
  • with screen reader: keyboard navigation won't work - you have to switch manually to focus mode
Environment
  • Angular: 22
  • CDK/Material: 22
  • Browser(s): Chrome, Firefox
  • Operating System: Windows 11
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 1h
PR unite (30g)
84

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/components

Tutte le issue di angular/components

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.