Discussion:
[MOD] STR #2862: Fl_Table keyboard nav issue: can't use tab to navigate off the widget
Greg Ercolano
2013-03-23 08:41:45 UTC
Permalink
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

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


Fixed in Subversion repository.

Fixed (a) and (b) in r9843.

Partial changes for (c): examples/table-spreadsheet.cxx

Regarding (a): by default FLTK uses Tab to navigate widgets.
However, one can enable the new Fl_Table::tab_cell_nav()
flag to allow Tab to navigate table cells.

Regarding (c): the examples/table-spreadsheet.cxx example was
modified to make use of this new feature,
and the example works better/more predictably.

More to come as other table examples are modified.

The new Fl_Table::tab_cell_nav() method breaks ABI,
so to to access it in FLTK 1.3.x, YOU MUST UNCOMMENT the
FLTK_ABI_VERSION macro at the top of the FL/Enumerations.H file
before rebuilding FLTK.


Link: http://www.fltk.org/str.php?L2862
Version: 1.3-current
Fix Version: 1.3-current
Greg Ercolano
2013-03-23 09:19:10 UTC
Permalink
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

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


Looks like Fl_Table_Row needs some fixes as well to support keyboard
navigation. So still todo:

e) Fl_Table_Row should heed new tab_cell_nav()

f) Fl_Table_Row needs a row focus box, similar to Fl_Browser,
so user can toggle-select rows in MULTI select mode

g) Fl_Table_Row needs to support things like SHIFT-Home, etc
to extend selections, and other key combos to toggle selection,
etc.


Link: http://www.fltk.org/str.php?L2862
Version: 1.3-current
Fix Version: 1.3-current
Greg Ercolano
2013-03-23 09:57:57 UTC
Permalink
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

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


Made small change in r9844 so that Tab can navigate to/from the input
field in foo_v2.cxx attached in this STR when the ABI feature is
/disabled/. (It worked OK when ABI feature was enabled)

This also fixes the test/table app, which previously had trouble
with tab navigation.

With r9844, status of issues is:
(a) Done
(b) Done
(c) Tested:
-- OK --
test/table -- OK: tab navigates to/from inputs
examples/table-as-container -- OK: tab navigates table widgets
-- FAILED --
examples/table-sort -- FAIL: because Fl_Table_Row (WIP)
examples/table-with-keynav -- FAIL: can't nav to checkbox+Output
-- NOT APPLICABLE --
examples/table-spreadsheet -- N/A: no other widgets to tab to
examples/table-simple -- N/A: read only, ""
examples/table-spreadsheet-with-keynav -- will be obsolete
(d) TODO
(e) TODO
(f) TODO
(g) TODO


Link: http://www.fltk.org/str.php?L2862
Version: 1.3-current
Fix Version: 1.3-current
Greg Ercolano
2013-03-23 10:01:09 UTC
Permalink
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

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


Adding another item to the issues list:

(h) Both Fl_Table and Fl_Table_Row will need to heed
Fl_Widget::visible_focus() (when focus box is added)


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

Loading...