Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu actions invoked from floating Projects/Files use wrong context #5062

Open
nmatt opened this issue Dec 9, 2022 · 0 comments
Open

Menu actions invoked from floating Projects/Files use wrong context #5062

nmatt opened this issue Dec 9, 2022 · 0 comments
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@nmatt
Copy link

nmatt commented Dec 9, 2022

Apache NetBeans version

Apache NetBeans 16 release candidate

What happened

I'm using the Projects/Files views in a separate floating window. Up to NetBeans 15, when invoking an action from the menu (such as Team > Commit), the context of the action was determined from where the keyboard focus was. If the keyboard focus was on the editor in the main window, the action would be applied to the current file. When the keyboard focus was on a node in the Projects or Files tree, the action would be applied to that node.

Now in NetBeans 16, the action seems to be always applied to the current file in the editor, even if the keyboard focus is in the Projects or Files tree (in the separate floating window).

I suspect that maybe #4603 broke the previous behavior.

How to reproduce

No response

Did this work correctly in an earlier version?

Apache NetBeans 15

Operating System

Windows 10

JDK

JDK 11

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

@nmatt nmatt added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Dec 9, 2022
@nmatt nmatt changed the title Actions invoked from floating Projects/Files use wrong context Menu actions invoked from floating Projects/Files use wrong context Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

1 participant