diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-11-01 01:49:35 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-11-01 01:49:35 +0000 |
| commit | 5d135b3928e770b88b6a42ebf901684b8196f60b (patch) | |
| tree | 828862a8acb9465f21300b0389330c6ec1c757a6 /src/fl_show_colormap.cxx | |
| parent | c8c675fb4b4640390b7dbda33ff37d2154daed2d (diff) | |
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
Diffstat (limited to 'src/fl_show_colormap.cxx')
| -rw-r--r-- | src/fl_show_colormap.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fl_show_colormap.cxx b/src/fl_show_colormap.cxx index 6ba68d2a4..250af14e4 100644 --- a/src/fl_show_colormap.cxx +++ b/src/fl_show_colormap.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.4 2003/01/30 21:44:23 easysw Exp $" +// "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.5 2003/11/01 01:49:35 easysw Exp $" // // Colormap color selection dialog for the Fast Light Tool Kit (FLTK). // @@ -102,6 +102,7 @@ int ColorMenu::handle(int e) { case FL_Left: if (c > 0) c--; break; case FL_Right: if (c < 255) c++; break; case FL_Escape: which = initial; done = 1; return 1; + case FL_KP_Enter: case FL_Enter: done = 1; return 1; default: return 0; } @@ -150,5 +151,5 @@ Fl_Color fl_show_colormap(Fl_Color oldcol) { } // -// End of "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.4 2003/01/30 21:44:23 easysw Exp $". +// End of "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.5 2003/11/01 01:49:35 easysw Exp $". // |
