-
Notifications
You must be signed in to change notification settings - Fork 16.2k
feat: add force option to app.focus() #22612
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
Conversation
3619d7f
to
a707f66
Compare
5578605
to
375d6ff
Compare
375d6ff
to
928979e
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 for the changes!
Release Notes Persisted
|
this was approved by the Releases WG on 5/6. removing pending-vote label |
I had this issue after opening a separate chrome/firefox browser instance. Solution's a bit hacky but works for me:
|
Description of Change
Closes #22554.
Adds a new optional
force
parameter toapp.focus()
, which allows for apps to make themselves active even if other apps are active.cc @MarshallOfSound @nornagon @ckerr
Checklist
npm test
passesRelease Notes
Notes: Add a new
force
parameter toapp.focus()
on macOS to allow apps to forcefully take focus.