-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[FIX] menus are not closed when clicking inside webviews #8633
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahar-h do you mind updating the pull-request to not include unnecessary changes (formatting)?
Please note that there is already an open pull-request which attempts to resolve the issue: #8576. |
dd4bd85
to
f8b4843
Compare
Sorry for that, VS Code converted all tabs to spaces, reverted all unrelated changes. |
@vince-fugnitto Windows build is failing with:
|
The formatting changes were reverted.
@vince-fugnitto this PR attempts to resolve only #7752 without breaking other functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahar-h the following pull-request introduces a flickering bug when navigating menus which I believe the previous pull-request attempted to address. For example, you can see how not only the tab flickers, but also the toolbar items which gives a bad user experience:
This issue is not related to my PR, it is also reproduced on master. |
@shahar-h this is As compared to the pull-request: |
@vince-fugnitto I'm not sure how you checked, I've just reproduced the same behavior on master: BTW, is there any reason there are two |
I was able to reproduce more consistently on
There are two items since we provide the functionality from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally the changes work very well 👍
I'll open a follow-up issue regarding the webview stealing focus and how toolbar items flicker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise.
Signed-off-by: Shahar Harari <[email protected]>
f8b4843
to
4fbe961
Compare
Signed-off-by: Shahar Harari [email protected]
What it does
Menus are now closed when clicking inside webviews.
In order to achieve this
mousedown
event needs to be dispatched to main window.Fixes #7752
How to test
See described steps in #7752.
Review checklist
Reminder for reviewers