diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-20 17:42:09 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-20 17:42:09 +0000 |
| commit | 2670b415890fe26331b72c90bdaed28bb25223a4 (patch) | |
| tree | c111f86c243e10c455f8221e5021d9d84f0ad022 | |
| parent | 5f5d68561f8b728bbabbef648d7fd818b8689df8 (diff) | |
Fix one last focus bug in Fl_Tabs - now clicks should update the focus
as expected...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Tabs.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index a901aa64e..f1a1e9299 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.15 2002/10/29 20:44:22 easysw Exp $" +// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.16 2002/11/20 17:42:09 easysw Exp $" // // Tab widget for the Fast Light Tool Kit (FLTK). // @@ -130,17 +130,17 @@ int Fl_Tabs::handle(int event) { } else { if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event); }} - if (Fl::visible_focus()) Fl::focus(this); case FL_DRAG: case FL_RELEASE: o = which(Fl::event_x(), Fl::event_y()); if (event == FL_RELEASE) {push(0); if (o && value(o)) do_callback();} else push(o); + if (Fl::visible_focus() && event == FL_RELEASE) Fl::focus(this); return 1; case FL_FOCUS: case FL_UNFOCUS: if (!Fl::visible_focus()) return Fl_Group::handle(event); - if (Fl::event() == FL_PUSH || + if (Fl::event() == FL_RELEASE || Fl::event() == FL_SHORTCUT || Fl::event() == FL_KEYBOARD) { int H = tab_height(); @@ -302,5 +302,5 @@ Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) : } // -// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.15 2002/10/29 20:44:22 easysw Exp $". +// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.16 2002/11/20 17:42:09 easysw Exp $". // |
