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
win.blur() returns focus to the previous window on the OS level, but this does not occur if the previously focused window was a sibling window. #21963
Comments
Did you test on macOS ? Because I seem to have the same problem on Electron 7.1.10 too |
I did test macOS and Linux with that version of Electron and had no issues. What version of macOS? |
With macOS Catalina
… Le 15 avr. 2020 à 21:00, Slapbox ***@***.***> a écrit :
I did test macOS and Linux with that version of Electron and had no issues. What version of macOS?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Interesting. Please do mention the exact version if you can (as per the issue template, which I know you can't see just leaving a comment - in my case In any event, it doesn't look like this issue is going to get any attention. |
The Electron version reported on this issue is no longer supported. See our supported versions documentation. If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know. Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated. |
Still an issue in 11.3.0. |
Still an issue in 11.4.7. Also |
To make easy me I did make use of node-notifier to take care of my alerts and notifications. Using alert seems to bring problems at data entry points!. So I will advise for now one should make use of a third-party notifier like (node-notifier) which makes use of the native windows notification system at least thats a lot nicer. you just have to send your notification msg to the ipc main from your ipc renderer then boom there you go !! |
Still an issue on Windows in 13.6.0. Works fine on Linux. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Not fixed to my knowledge, but I don't have an updated repro available right now. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
I don't believe this is fixed but I don't have a repro. I somehow missed the stale notification. This seems possibly related to #19977. |
Preflight Checklist
Issue Details
7.1.10
Windows 7 & Windows 10 (Build 1803)
(Confirmed working macOS 10.13.6 / Mint 19)Electron@3
.Expected Behavior
Calling
win.blur()
will return focus to the previously focused windowActual Behavior
If the previously focused window is part of the same Electron application, upon
win.blur()
the user will have no window focused.To Reproduce
BrowserWindow
s (allowremote
module for simplicity)WinA
can be emptyWinB
include<button onclick="remote.getCurrentWindow().blur()>Blur</button>
WinA
Blur
inWinB
Press some OS level hotkey to affect the window, either closing, minimizing, etc - it will fail. Of course
webContents
is also not focused, but for simplicity's sake.Additional Information
Seems very likely related to #20464 and #19977
The text was updated successfully, but these errors were encountered: