-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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: ensure context-menu
emitted for draggable regions
#44761
Conversation
e802016
to
f817b07
Compare
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!
Release Notes Persisted
|
I have automatically backported this PR to "32-x-y", please check out #44798 |
I have automatically backported this PR to "34-x-y", please check out #44799 |
I have automatically backported this PR to "33-x-y", please check out #44800 |
is this issue related to #44887? |
Description of Change
Closes #44386.
Refs #41256
Fixes an issue where the webContents
context-menu
event was not emitted when using-webkit-app-region: drag
. This was happening after the sibling view change above becausesendEvent
inNativeWidgetMacNSWindow
no longer sent the right-click event to the correct NSView. We can fix this by intercepting the event insendEvent
onElectronNSWindow
, which inherits fromNativeWidgetMacNSWindow
. This solution avoids patching.cc @bpasero
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where the webContents
context-menu
event was not emitted when using-webkit-app-region: drag
.