You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Selection behavior in Documents dialog when closing documents #9482
In the Documents dialog (Window > Documents...), when closing a document (using the Delete key or Alt+L), the selection in the Documents list moves up to the document above the one that was closed. This is unusual and inconsistent with how deletion works in file managers and in the Projects and Files pane. It makes it less convenient to quickly close a number of adjacent documents by repeatedly hitting Delete, because you either have to start from the bottom, or re-navigate to the next document in-between, or first multi-select the documents to be closed.
=> Change the behavior so that when closing a document, the selection moves to the document after that (if any). This means that visually the selection stays in place, as the documents listed after the one having been deleted move up.
Language / Project Type / NetBeans Component
No response
How to reproduce
Open a bunch of files in the editor.
Invoke Windows > Documents... (or Shift+F4).
Press arrow-down to move to some document in the middle of the list.
Press Delete (or Alt+L) to close the selected document.
=> The previous document in the list becomes selected instead of the next document.
changed the title [-]Focus behavior in Documents dialog when closing documents[/-][+]Selection behavior in Documents dialog when closing documents[/+]on Jul 2, 2026
Activity
[-]Focus behavior in Documents dialog when closing documents[/-][+]Selection behavior in Documents dialog when closing documents[/+]mbien commentedon Jul 20, 2026
proposed fix at #9527 (devbuild zip in workflow output)