Author: manolo
Date: 2011-05-12 08:53:59 -0700 (Thu, 12 May 2011)
New Revision: 8658
Log:
Fix for STR #2628: keep focus within an Fl_Tab after moving to another window
and back.
This had been partially fixed following STR #2552.
Modified:
branches/branch-1.3/src/Fl_Tabs.cxx
Modified: branches/branch-1.3/src/Fl_Tabs.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Tabs.cxx 2011-05-12 11:50:43 UTC (rev 8657)
+++ branches/branch-1.3/src/Fl_Tabs.cxx 2011-05-12 15:53:59 UTC (rev 8658)
@@ -217,11 +217,8 @@
Fl::event() == FL_FOCUS ||
Fl::event() == FL_UNFOCUS) {
redraw_tabs();
-#ifndef __APPLE__
- // fix for STR #2552
if (Fl::event() == FL_FOCUS) return Fl_Group::handle(event);
-#endif
- if (Fl::event() == FL_FOCUS || Fl::event() == FL_UNFOCUS) return 0;
+ if (Fl::event() == FL_UNFOCUS) return 0;
else return 1;
} else return Fl_Group::handle(event);
case FL_KEYBOARD:
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit