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

bug in nfd_cocoa.m (some calls don't restore focus to main window) #5

Open
andykt opened this issue Feb 21, 2017 · 0 comments
Open

Comments

@andykt
Copy link

andykt commented Feb 21, 2017

Much thanks for your work Alloyed! Just wanted to report a bug in nfd_cocoa.m.
The NFD_OpenDialogMultiple and NFD_SaveDialog routines are not resetting the focus to the main window when they finish. NFD_OpenDialog has no such problem because it uses these two calls:

NSWindow *keyWindow = [[NSApplication sharedApplication] keyWindow];
...
[keyWindow makeKeyAndOrderFront:nil];

To fix the bug just add these calls to the same places in NFD_OpenDialogMultiple and NFD_SaveDialog.

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

1 participant