diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-08 18:32:16 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-08 18:32:16 +0000 |
| commit | 84950c0af7f9cce03c0afd9895d139f379fa30c9 (patch) | |
| tree | 76832adb21bd134a80f8922445ed5f59763bc447 /src/Fl_Output.cxx | |
| parent | 6fa4abfe545e04186bca73f4d1e12fb7eb091ead (diff) | |
Fl_Output didn't grab input focus, and so was unable to handle CTRL-C
to copy selected text, and wouldn't know when to redraw itself when
it lost focus...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Output.cxx')
| -rw-r--r-- | src/Fl_Output.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Output.cxx b/src/Fl_Output.cxx index 504329f86..c5379157f 100644 --- a/src/Fl_Output.cxx +++ b/src/Fl_Output.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Output.cxx,v 1.6.2.3.2.1 2002/01/01 15:11:31 easysw Exp $" +// "$Id: Fl_Output.cxx,v 1.6.2.3.2.2 2002/04/08 18:32:16 easysw Exp $" // // Output widget for the Fast Light Tool Kit (FLTK). // @@ -38,7 +38,10 @@ void Fl_Output::draw() { } int Fl_Output::handle(int event) { - if (event == FL_FOCUS) return 0; + if (event == FL_KEYBOARD && Fl::event_text()[0] == 0x03) { + // Handle CTRL-C for copy... + return copy(1); + } Fl_Boxtype b = box() ? box() : FL_DOWN_BOX; return Fl_Input_::handletext(event, x()+Fl::box_dx(b)+3, y()+Fl::box_dy(b), @@ -46,5 +49,5 @@ int Fl_Output::handle(int event) { } // -// End of "$Id: Fl_Output.cxx,v 1.6.2.3.2.1 2002/01/01 15:11:31 easysw Exp $". +// End of "$Id: Fl_Output.cxx,v 1.6.2.3.2.2 2002/04/08 18:32:16 easysw Exp $". // |
