summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_File_Chooser.cxx3
-rw-r--r--src/Fl_File_Chooser.fl11
2 files changed, 8 insertions, 6 deletions
diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx
index ab5ea30d9..ac62bc549 100644
--- a/src/Fl_File_Chooser.cxx
+++ b/src/Fl_File_Chooser.cxx
@@ -209,7 +209,8 @@ const char * Fl_File_Chooser::label() {
}
void Fl_File_Chooser::show() {
- window->show();
+ window->hotspot(fileList);
+window->show();
fileList->deselect();
}
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index 215a81fc5..456e5af00 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -150,15 +150,16 @@ rescan();} {}
}
decl {void rescan();} {public
}
- Function {show()} {return_type void
+ Function {show()} {open return_type void
} {
- code {window->show();
-fileList->deselect();} {}
+ code {window->hotspot(fileList);
+window->show();
+fileList->deselect();} {selected
+ }
}
Function {shown()} {return_type int
} {
- code {return window->shown();} {selected
- }
+ code {return window->shown();} {}
}
Function {textcolor(Fl_Color c)} {return_type void
} {