summaryrefslogtreecommitdiff
path: root/src/Fl_Native_File_Chooser_MAC.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Native_File_Chooser_MAC.mm')
-rw-r--r--src/Fl_Native_File_Chooser_MAC.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm
index 2aa48c2bf..764e4261c 100644
--- a/src/Fl_Native_File_Chooser_MAC.mm
+++ b/src/Fl_Native_File_Chooser_MAC.mm
@@ -532,6 +532,7 @@ int Fl_Native_File_Chooser::post() {
}
// SHOW THE DIALOG
+ NSWindow *key = [NSApp keyWindow];
if ( [(NSSavePanel*)_panel isKindOfClass:[NSOpenPanel class]] ) {
NSPopUpButton *popup = nil;
if (_filt_total) {
@@ -609,6 +610,7 @@ int Fl_Native_File_Chooser::post() {
[preset release];
if ( retval == NSOKButton ) get_saveas_basename();
}
+ [key makeKeyWindow];
[localPool release];
return (retval == NSOKButton ? 0 : 1);
}