Keep keyboard focus inside open dialogs
I maintainer di solito rispondono entro 1 giorno
@100rabheimer ci sta già lavorando.
Dal 22/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 88/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
- Ambito
- accessibility, frontend
Direzione di ricerca
Inizia dal componente Modal all’inizio di client/src/pages/Tasks.jsx ed esamina il gestore esistente del tasto Esc e il modo in cui le finestre di dialogo New, Edit e Delete mostrano i controlli. Usa i passaggi da tastiera nell’issue per verificare il focus all’apertura, il ciclo con Tab e Shift+Tab e il ripristino del focus dopo ogni modalità di chiusura. Il lavoro è completato quando tutti i criteri di accettazione sono soddisfatti senza aggiungere dipendenze.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
The New Task, Edit Task and Delete Task dialogs close with Esc (#45), but keyboard focus doesn't follow them. When a dialog opens, focus stays on the button behind it. Pressing Tab moves through the page behind the dialog. When it closes, focus is lost instead of going back to the button that opened it.
All three dialogs use the same Modal component, so the fix only needs to happen in one place.
Files likely involved
client/src/pages/Tasks.jsx(theModalcomponent at the top)
Acceptance criteria
- When a dialog opens, focus moves into it: the first field for New/Edit, the Cancel button for Delete.
- Tab and Shift+Tab cycle through the dialog's buttons and fields only, and never reach the page behind it.
- When the dialog closes (×, Cancel, Esc, backdrop or saving), focus goes back to the element that opened it.
- No new dependencies. A
useRefand akeydownhandler next to the existing Esc handler are enough.
How to test
- Using only the keyboard, Tab to New Task and press Enter: the cursor is in the Title field.
- Keep pressing Tab: focus cycles inside the dialog. Shift+Tab goes backwards.
- Press Esc: focus is back on New Task.
- Repeat with a task's Edit and Delete buttons.
New here? 👋 Good first issues are reserved for people making their first few open-source contributions. Comment below to ask to work on this issue, and wait to be assigned. Then follow CONTRIBUTING.md for setup and how to open a pull request. Questions are welcome in the comments or in Discussions.
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 2
- Merge medio
- 13h 11m
- PR unite (30g)
- 43
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di KEX-03/taskflow
-
Due dates (3/3): highlight overdue tasksForse già presa @maansi1004 l’ha presa 6 giorni fa. Apertadifficulty: medium enhancement frontend hacktoberfest help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
KEX-03/taskflow#70 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Warn users when selecting past due datesForse già presa @the-coder-aadi l’ha presa 6 giorni fa. Apertaenhancement frontend
KEX-03/taskflow#94 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty: medium enhancement frontend hacktoberfest help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
KEX-03/taskflow#77 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Board view (1/2): show tasks as a Kanban boardForse già presa @Korale05 l’ha presa 3 giorni fa. Apertadifficulty: medium enhancement frontend hacktoberfest help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 82/100
KEX-03/taskflow#76 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Light theme (3/3): add a light theme and a theme toggleForse già presa @gracysinngh l’ha presa 3 giorni fa. Apertadifficulty: medium enhancement frontend hacktoberfest help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
KEX-03/taskflow#73 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di KEX-03/taskflow
Issue simili
-
[metro-file-map] An error a watcher backend reports ends the server, since nothing listens for itAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
post-merge-followup
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
code-yeongyu/senpi#5262 ·
I maintainer di solito rispondono entro 1 giorno
-
status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
mastra-ai/mastra#29108 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
fix(scripts): UnicodeEncodeError in test_run_training_pipeline on non-UTF-8 default encoding environmentsForse già presa @hardikkaurani l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno