summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2014-08-21 13:51:11 +0000
committerLauri Kasanen <cand@gmx.com>2014-08-21 13:51:11 +0000
commitc4b3a2d5d3d66849807929701b36e7d6272e5cbd (patch)
tree6f2017d51590d9794c11ab4335b989c117476af4
parent5613941a2852faa37d338f23f549b26a15cd2779 (diff)
When typing a path in Fl_File_Chooser, the enter key should select the file. STR #2910
This was originally changed in 1.1.8 by matt (r6092). The commit was about fixing multiple selection and had no mention of why the enter key behavior was changed not to work. STR #1913 Multiple selection still works. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_File_Chooser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx
index 25d46a7bb..607b0fa43 100644
--- a/src/Fl_File_Chooser.cxx
+++ b/src/Fl_File_Chooser.cxx
@@ -221,7 +221,7 @@ Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char
fileName->callback((Fl_Callback*)cb_fileName);
fileName->when(FL_WHEN_ENTER_KEY);
Fl_Group::current()->resizable(fileName);
- fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY);
+ fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY_ALWAYS);
} // Fl_File_Input* fileName
{ Fl_Box* o = new Fl_Box(10, 310, 105, 25, "Filename:");
o->labelfont(1);