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: overzealous media key listening on Windows #34594
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.
Tested with the repro case on Windows and it works! 👍
Release Notes Persisted
|
I was unable to backport this PR to "18-x-y" cleanly; |
I have automatically backported this PR to "19-x-y", please check out #34646 |
I have automatically backported this PR to "20-x-y", please check out #34647 |
Description of Change
Closes #32385.
Fixes an issue where media keys would be sent to Electron on Windows no matter which window was in focus. This is fixed by only adding a
ui::MediaKeysListener
on either systems that don't supportSystemMediaControls
(e.g. Windows 7/8) or macOS, since that's necessary to ensure proper functionality ofglobalShortcuts
on macOS.Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where media keys would be sent to Electron on Windows no matter which window was in focus.