Author: greg.ercolano
Date: 2013-03-23 02:25:27 -0700 (Sat, 23 Mar 2013)
New Revision: 9844
Log:
Default behavior of table /without/ ABI mods is to follow strict rule
where Tab and Shift-Tab navigate off the table widget.

This enables the Tab key to work properly with:

        o The test/table program; Tab can move focus to other input fields

        o With the foo_v2.cxx example code in STR#2862, Tab can navigate
          to/from the Fl_Input field



Modified:
   branches/branch-1.3/src/Fl_Table.cxx

Modified: branches/branch-1.3/src/Fl_Table.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Table.cxx        2013-03-23 08:14:08 UTC (rev 
9843)
+++ branches/branch-1.3/src/Fl_Table.cxx        2013-03-23 09:25:27 UTC (rev 
9844)
@@ -1028,7 +1028,9 @@
           break;
        case FL_Tab:
 #if FLTK_ABI_VERSION >= 10303
-         if ( !tab_cell_nav() ) break; // not navigating cells? let fltk 
handle it (STR#2862)
+         if ( !tab_cell_nav() ) break;         // not navigating cells? let 
fltk handle it (STR#2862)
+#else
+          break;                               // without tab_cell_nav(), 
Fl_Table should default to navigating widgets, not cells
 #endif
          if ( _event_state & FL_SHIFT ) {
             ret = move_cursor(0, -1, 0);       // shift-tab -> left

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to