Skip to content
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

Force window to be in the foreground #16

Open
woelper opened this issue Apr 9, 2019 · 2 comments
Open

Force window to be in the foreground #16

woelper opened this issue Apr 9, 2019 · 2 comments

Comments

@woelper
Copy link

woelper commented Apr 9, 2019

Sorry for this potentially stupid issue but I have a very obscure use case where I trigger this very nice library from an electron app that communicates with a rust backend via rest/rocket. However the native file browser always opens in the background, making it hard or impossible to see. Is there a way to bring it to focus automatically?

@mlabbe
Copy link

mlabbe commented Jan 9, 2021

Numerous commits are in the upstream nativefiledialog project devel branch as of today that have improved focus issues on MacOS and X/Linux/GTK targets.

@John-Nagle
Copy link

It's still possible to get the file picker in the background. This is serious for full-screen games with a modal dialog. The user is stuck with a dead keyboard and mouse. CTL-ALT-DEL, or, if the window has a title bar, minimizing it, will expose the file picker, but that's about it.

Demo: https://github.com/John-Nagle/ui-mock
Look in the "development" menu for an open file menu option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants