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 (main window can lose focus) #30

Closed
andykt opened this issue Feb 21, 2017 · 1 comment
Closed

bug in nfd_cocoa.m (main window can lose focus) #30

andykt opened this issue Feb 21, 2017 · 1 comment

Comments

@andykt
Copy link

andykt commented Feb 21, 2017

Much thanks for your work! 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.

@mlabbe
Copy link
Owner

mlabbe commented Dec 31, 2018

Fixed in 51ad1b4.

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

No branches or pull requests

2 participants