From 5d135b3928e770b88b6a42ebf901684b8196f60b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 1 Nov 2003 01:49:35 +0000 Subject: The keypad Enter key works as the normal Enter/Return key in common widgets (STR #191) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Chooser2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_File_Chooser2.cxx') diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index ce1c5d25c..6f1179223 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.32 2003/09/03 19:38:01 easysw Exp $" +// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.33 2003/11/01 01:49:35 easysw Exp $" // // More Fl_File_Chooser routines. // @@ -488,7 +488,7 @@ Fl_File_Chooser::fileNameCB() filename = pathname; // Now process things according to the key pressed... - if (Fl::event_key() == FL_Enter) + if (Fl::event_key() == FL_Enter || Fl::event_key() == FL_KP_Enter) { // Enter pressed - select or change directory... #if (defined(WIN32) && ! defined(__CYGWIN__)) || defined(__EMX__) @@ -1163,5 +1163,5 @@ unquote_pathname(char *dst, // O - Destination string // -// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.32 2003/09/03 19:38:01 easysw Exp $". +// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.33 2003/11/01 01:49:35 easysw Exp $". // -- cgit v1.2.3