[Bug] Accessibility Bug: Broken Focus Management After Closing Search Pop-up Modal
I maintainer di solito rispondono entro 1 giorno
@rebornix ci sta già lavorando.
Dal 19/5/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Issue Description:
There is a critical focus management defect when a user interacts with and exits the search pop-up component. When a keyboard user closes the search pop-up modal, the active focus is entirely lost from the original context and inappropriately dumped into the background code-editor component instead of returning to the invoking element.
Proper keyboard navigation dictates that when temporary content (like a modal or pop-up) is dismissed, focus must be systematically returned to the element that triggered it. Disrupting this flow disorients keyboard-only users and forces them to re-tab through the entire page layout to find their previous location.
Monaco Editor Playground Code
Selector
#IDEInteraction-Q3 > div.ide-container-wrapper > div > div.monaco-editor.no-user-select.showUnused.showDeprecated.vs > div.overflow-guard > div.overlayWidgets > div.editor-widget.find-widget.visible.replaceToggled > div.button.codicon.codicon-widget-close
Source code
Code:
- 2. 3. 4.
Reproduction Steps
Steps to Reproduce:
Activate the search feature via keyboard to launch the search pop-up modal.
Interact with the pop-up or navigate directly to the modal's "Close" button using the Tab key.
Activate the "Close" button (via Enter or Spacebar) to dismiss the pop-up.
Observe: Instead of focus resetting cleanly onto the main Search button that originally opened the modal, the focus ring jumps unexpectedly to the code-editor text area.
Actual (Problematic) Behavior
Defect Details:
Impacted UI Components: Search Pop-up Modal / Code Editor
Target Element: "Close" button within the search pop-up
Issue Trigger: Closing or dismissing the search modal
Current Errant Behavior: Keyboard focus snaps straight to the code-editor area upon closing.
Expected Behavior
Expected Behavior:
When modal/pop-up content is removed from the screen in reaction to a user-fired event, focus must be explicitly shifted to the next logical place in the interaction flow. In this specific workflow, closing the search pop-up should seamlessly return the interactive focus to the triggering Search button.
Additional Context
Keyboard focus is lost or misplaced due to user interaction or content update
- Lingua principale
- JavaScript
- Stelle
- 47k
- Fork
- 4.2k
- Merge medio
- 3g 13h
- PR unite (30g)
- 13
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun 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 microsoft/monaco-editor
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
microsoft/monaco-editor#5626 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] package.json `"typings"` points to a file which does not exist in the npm packageForse già presa @whoalin1 l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/monaco-editor#5615 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] C# scientific-notation literals without a decimal point are split into identifiersForse già presa @Janani-bn l’ha presa 15 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
microsoft/monaco-editor#5583 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Rust scientific-notation literals without an exponent sign are split into identifiersForse già presa @Janani-bn l’ha presa 14 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/monaco-editor#5582 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Go numeric literals with underscore separators are split into identifiersForse di nuovo libera @aaronanish-t l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
microsoft/monaco-editor#5577 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/monaco-editor
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Life-Framework/Life-Framework#7017 ·
I maintainer di solito rispondono entro 1 giorno
-
e/DevOps enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Accenture/sfmc-devtools#2795 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/guide documentation help wanted stage/010-actionable
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kubestellar/console-kb#4003 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
FilOzone/synapse-sdk#1201 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno