From c4b3a2d5d3d66849807929701b36e7d6272e5cbd Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 21 Aug 2014 13:51:11 +0000 Subject: 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 --- src/Fl_File_Chooser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3