feat: allow intercepting mouse events#47280
Merged
codebytere merged 3 commits intomainfrom Jun 4, 2025
Merged
Conversation
a0e0f3b to
3c8b4c4
Compare
dsanders11
approved these changes
May 29, 2025
Member
dsanders11
left a comment
There was a problem hiding this comment.
Can we add test coverage in spec/api-web-contents-spec.ts? And optionally add it into spec/ts-smoke/electron/main.ts as well.
3c8b4c4 to
69cd2d9
Compare
Member
Author
|
@dsanders11 done! |
dsanders11
reviewed
Jun 2, 2025
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
|
Release Notes Persisted
|
This was referenced Jun 4, 2025
Contributor
|
I have automatically backported this PR to "37-x-y", please check out #47364 |
Contributor
|
I have automatically backported this PR to "36-x-y", please check out #47365 |
kigh-ota
pushed a commit
to kigh-ota/electron
that referenced
this pull request
Sep 30, 2025
* feat: allow intercepting mouse events * test: add specs * Update spec/api-web-contents-spec.ts Co-authored-by: David Sanders <dsanders11@ucsbalum.com> --------- Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Closes #15646.
Refs CL:6266792
Adds
before-mouse-eventto allow intercepting and preventing mouse events in WebContents.Checklist
npm testpassesRelease Notes
Notes: Added
before-mouse-eventto allow intercepting and preventing mouse events in WebContents.