DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2628
Version: 1.3-current


When a widget inside Fl_Tabs has focus, and the window lost focus, upon
the window gaining focus again, Fl_Tabs fails to restore the focus
to the previously focused widget.
This problem has been discussed in 2009 already. Only now a STR is made.


Link: http://www.fltk.org/str.php?L2628
Version: 1.3-current
Index: fltk-1.3.x-r8365/src/Fl_Tabs.cxx
===================================================================
--- fltk-1.3.x-r8365.orig/src/Fl_Tabs.cxx       2011-04-23 07:53:27.000000000 
+0200
+++ fltk-1.3.x-r8365/src/Fl_Tabs.cxx    2011-04-23 07:53:58.000000000 +0200
@@ -217,7 +217,8 @@
        Fl::event() == FL_FOCUS ||
        Fl::event() == FL_UNFOCUS) {
       redraw_tabs();
-      if (Fl::event() == FL_FOCUS || Fl::event() == FL_UNFOCUS) return 0;
+      if (Fl::event() == FL_FOCUS || Fl::event() == FL_UNFOCUS)
+             return Fl_Group::handle(event);
       else return 1;
     } else return Fl_Group::handle(event);
   case FL_KEYBOARD:
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to