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
This commit is contained in:
parent
ff6dc202ae
commit
4f24b4cc65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user