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
[Feature Request] gui.App.hide() or gui.App.blur() #2241
Comments
I think you can't control focus on other app outside node context. In case everything is in node context. A window opening another window for example, you can control events of the overlayed window (the second one) like "hidden" status. to get focus on other windows (the first window for example).
For 3rd party apps. (Outside Node-webkit) I hope this helps you a bit, and someone gives you what you need if so. :D |
Yes, I would suppose that application focus is handled at the os level and may be tricky to implement in a cross-platform manner. For example, it would be ideal, but I don't know that it would be possible to implement something like this:
That would be a versatile solution for focusing arbitrary third-party apps. That said, all I need to is to focus the previous application, and (at least on a mac) "hiding" an application automatically does that.
If the concept of application-level "hide" doesn't translate to other platforms, I imagine |
Has there been any progress on this or at least a workaround to actually be able to blur the window and re-focus the previous application? Thanks~ :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I know about
gui.Window.get().hide()
, but there is no correspondinggui.App.hide()
method.the setup I'm trying to implement is basically Alfred's interface:
"window": { "show": false }
inpackage.json
App.registerGlobalHotKey()
and"always-on-top": true
It's the last bit that doesn't seem to be possible at the moment. I can hide the window, but focus remains on the node-webkit application. I have to click on whatever application I was working in before to return the focus.
on a mac, hiding the application will revert focus back to whatever the previously used application was, so I'm guessing this is the easiest solution.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: