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

Readdress 5737 fixing the actual cause #5891

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Conversation

softwarenerd
Copy link
Contributor

@softwarenerd softwarenerd commented Jan 6, 2025

Description

This PR readdresses #5737 by fixing the actual cause of the issue. With this PR, mouse down events do not steal focus when they occur inside a Positron action bar. This workaround was borrowed from code in handleTitleClickOrTouch that does the same thing for Monaco action bars.

@:editor-action-bar

QA Notes

None.

Copy link

github-actions bot commented Jan 6, 2025

E2E Tests 🚀  ?
This PR will run tests tagged with: @critical @editor-action-bar

Copy link
Contributor

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

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

When I build from this PR, I don't quite see as good behavior as I did with #5834. Specifically, when I click only once on one of these buttons:

Image

it does not do anything. When I click a second time, then it does in fact go ahead with whatever action needs to happen, like split right or start the publishing process.

What do you think? Do you also see the behavior around the first click vs. the second one?

Copy link
Contributor

@isabelizimm isabelizimm left a comment

Choose a reason for hiding this comment

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

I do not see the single-click behavior; for me it seems to work as expected 🤔

Copy link
Contributor

@isabelizimm isabelizimm left a comment

Choose a reason for hiding this comment

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

tested with a jupyter notebook and quarto file; splitting editors right/down and popping out all worked on the first try 👍

Copy link
Contributor

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

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

This works great for me now as well! 🙌

@softwarenerd softwarenerd merged commit 8ecd4c5 into main Jan 8, 2025
6 checks passed
@softwarenerd softwarenerd deleted the fix/readdress-5737 branch January 8, 2025 01:19
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants