Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Fix: Added capturing to keydown events when hiding tooltips #17958

Conversation

cacheflow
Copy link
Contributor

@cacheflow cacheflow commented Aug 30, 2018

Description of the Change
Fix #17957 by ensuring capturing occurs and the event is bubbled up to the window.

Alternate Designs
None.

Benefits
It fixes an issue where users may want to see the workspace they're typing in, but a tooltip is hiding it.

Possible Drawbacks
It adds an additional event listener for each tooltip.

Verification Process
I modified the existing tooltip-manager spec to include a new test for this feature, ran the test suite, and also manually tested it by reproducing the steps listed in #17957.

Before fix
tooltip-without-fix

After fix
tooltip-with-fix

Applicable Issues
#17957

Copy link
Contributor

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

Restarted VSTS build failed for an unrelated reason, I think this PR is good. Thanks a lot @cacheflow!

@daviwil daviwil merged commit d0ecc65 into atom:master Sep 6, 2018
@cacheflow cacheflow deleted the add-capturing-to-keydown-events-when-hiding-tooltips branch September 6, 2018 18:26
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.

Tooltips still not closing on keydown events
2 participants