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

Allow focus events to propagate before running glyph gutter actions - GH4155 #7386

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

neilcsmith-net
Copy link
Member

As reported in #4155 breakpoints are added at the wrong point when clicking on the glyph gutter of an unfocused editor split. The glyph gutter mouse listener attempts to focus the editor component, but the focus change events are queued causing EditorContextDispatcher to report the wrong focused component.

Attempt to fix by checking if the component has the focus, and if not queuing up the event handling to run after the focus events.

@neilcsmith-net neilcsmith-net added kind:bug Bug report or fix Editor UI User Interface ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels May 20, 2024
@neilcsmith-net neilcsmith-net added this to the NB23 milestone May 20, 2024
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.

Thank you, looks sane to me.

For me this fixes the issue, that two clicks are necessary if the target editor not yet has focus when setting a breakpoint. In my test not fixed by this is the issue of the "Toogle Bookmark" action covered by #7384.

@neilcsmith-net
Copy link
Member Author

No further update from the issue reporter. I'll merge this tomorrow unless anyone has objections.

@neilcsmith-net neilcsmith-net merged commit d39dbdd into apache:master Jun 4, 2024
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Editor kind:bug Bug report or fix UI User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants