-
Notifications
You must be signed in to change notification settings - Fork 33k
Fixes #218254 #219312
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
Fixes #218254 #219312
Conversation
@mjbvz could you please check and review this change 🙂. I'm a bit new to this code repo and would appreciate your feedback. |
Fixes #218254 |
@mjbvz could you please take a look at this when you have a moment 🙂? Thank you! 🙂 |
fc3f18b
to
85d6dc3
Compare
@@ -506,6 +505,10 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD | |||
|
|||
this._messagePort = e.ports[0]; | |||
this._messagePort.onmessage = (e) => { | |||
if (e.data.channel === 'did-context-menu') { |
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.
You can use the existing did-context-menu
listener on line 246 for this
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.
Sure will check and update @mjbvz
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.
Done @mjbvz 🙂
d0ae5a2
to
155513e
Compare
onDidShowContextMenu fires for every webview even though only one webview has the context menu visible, hence removed the onDidShow listener, sending the set-context-menu-visible event to the html on did-context-menu event so that the context-menu-visible class gets applied only to the webview that actually has the context menu visible
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.
Thanks!
onDidShowContextMenu fires for every webview even though only one webview has the context menu visible, hence removed the onDidShow listener, sending the set-context-menu-visible event to the html on did-context-menu event so that the context-menu-visible class gets applied only to the webview that actually has the context menu visible
Fixes #218254
onDidShowContextMenu fires for every webview even though only one webview has the context menu visible, hence removed the onDidShow listener, sending the set-context-menu-visible event to the html on did-context-menu event so that the context-menu-visible class gets applied only to the webview that actually has the context menu visible