[FIX] menus are not closed when clicking inside webviews#8633
[FIX] menus are not closed when clicking inside webviews#8633vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
Conversation
vince-fugnitto
left a comment
There was a problem hiding this comment.
@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. |
vince-fugnitto
left a comment
There was a problem hiding this comment.
@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 |
vince-fugnitto
left a comment
There was a problem hiding this comment.
Functionally the changes work very well 👍
I'll open a follow-up issue regarding the webview stealing focus and how toolbar items flicker.
Signed-off-by: Shahar Harari <shahar.harari@sap.com>
f8b4843 to
4fbe961
Compare





Signed-off-by: Shahar Harari shahar.harari@sap.com
What it does
Menus are now closed when clicking inside webviews.
In order to achieve this
mousedownevent needs to be dispatched to main window.Fixes #7752
How to test
See described steps in #7752.
Review checklist
Reminder for reviewers