From 4f24b4cc652ff64cb3fefe5477ab1324f467943e Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 23 Mar 2013 09:25:27 +0000 Subject: [PATCH] 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 --- src/Fl_Table.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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