summaryrefslogtreecommitdiff
path: root/src/Fl_Table.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2013-03-23 09:25:27 +0000
committerGreg Ercolano <erco@seriss.com>2013-03-23 09:25:27 +0000
commit4f24b4cc652ff64cb3fefe5477ab1324f467943e (patch)
tree99ffcc35598f1ee61005adb8c5e1fc663eb8c40e /src/Fl_Table.cxx
parentff6dc202aef3d4cdab796cebd15d1a3a4207453d (diff)
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 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Table.cxx')
-rw-r--r--src/Fl_Table.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Table.cxx b/src/Fl_Table.cxx
index a351d5ef3..6b4480948 100644
--- a/src/Fl_Table.cxx
+++ b/src/Fl_Table.cxx
@@ -1028,7 +1028,9 @@ int Fl_Table::handle(int event) {
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