diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-12-08 06:31:48 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-12-08 06:31:48 +0000 |
| commit | 11a7b522c17779a045f4308a7cf0a6c5810fcc8e (patch) | |
| tree | 337f3a0a23bf42f3e034593025d767cc7927ee0f | |
| parent | cbdf39916fedb180fe47923baa28299ec05c96cc (diff) | |
Double/triple click selection fix in Fl_Input.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Input.cxx | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.3 + - Double/triple clicks in Fl_Input fields didn't copy + the expanded selection to the clipboard. - Fl_Glut_Window and Fl_Gl_Window didn't always initialize the OpenGL context on MacOS. diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index 25f6cd00b..1e5179456 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input.cxx,v 1.10.2.15.2.15 2002/10/30 14:23:15 easysw Exp $" +// "$Id: Fl_Input.cxx,v 1.10.2.15.2.16 2002/12/08 06:31:48 easysw Exp $" // // Input widget for the Fast Light Tool Kit (FLTK). // @@ -344,6 +344,9 @@ int Fl_Input::handle(int event) { // user clicked in the field and wants to reset the cursor position... position(drag_start, drag_start); drag_start = -1; + } else if (Fl::event_clicks()) { + // user double or triple clicked to select word or whole text + copy(0); } // For output widgets, do the callback so the app knows the user // did something with the mouse... @@ -404,5 +407,5 @@ Fl_Input::Fl_Input(int X, int Y, int W, int H, const char *l) } // -// End of "$Id: Fl_Input.cxx,v 1.10.2.15.2.15 2002/10/30 14:23:15 easysw Exp $". +// End of "$Id: Fl_Input.cxx,v 1.10.2.15.2.16 2002/12/08 06:31:48 easysw Exp $". // |
