Skip to content

Conversation

@eirikbakke
Copy link
Contributor

When the user closes the last TopComponent in a window system mode other than the 'editor' one, move the focus to the 'editor' mode in preference to other modes (rather than e.g. the Output pane or Projects tab).

For example, in the following screenshot, if the user has the "Mavenproject1.java" editor selected, and then presses Ctrl+W (Command-W on Mac) to close that editor, the focus would previously end up on the Projects tab. With this PR in place, the focus instead goes to the NewClass editor. This is more useful, and consistent with the behavior that happens when the user closes an editor in a mode that have other tabs still open.

image

…her than the 'editor' one, move the focus to the 'editor' mode in preference to other modes (rather than e.g. the Output pane or Projects tab).
@eirikbakke eirikbakke added Editor Platform [ci] enable platform tests (platform/*) UI User Interface labels Mar 11, 2025
Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be in line with the original intention, looks sane to me and in my test I could follow the stated example. Thanks.

@eirikbakke
Copy link
Contributor Author

Thanks for reviewing! Merging...

@eirikbakke eirikbakke merged commit 56ab05a into apache:master Mar 30, 2025
32 checks passed
@neilcsmith-net neilcsmith-net added this to the NB26 milestone Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Editor Platform [ci] enable platform tests (platform/*) UI User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants