Author: greg.ercolano
Date: 2010-10-26 03:31:23 -0700 (Tue, 26 Oct 2010)
New Revision: 7747
Log:
Added handling of Tab key for Fl_Table keyboard navigation.
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 2010-10-26 09:48:21 UTC (rev
7746)
+++ branches/branch-1.3/src/Fl_Table.cxx 2010-10-26 10:31:23 UTC (rev
7747)
@@ -990,6 +990,13 @@
case FL_Down:
ret = move_cursor(1, 0);
break;
+ case FL_Tab:
+ if ( Fl::event_state() & FL_SHIFT ) {
+ ret = move_cursor(0, -1); // shift-tab -> left
+ } else {
+ ret = move_cursor(0, 1); // tab -> right
+ }
+ break;
}
if (ret && Fl::focus() != this) {
do_callback(CONTEXT_TABLE, -1, -1);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit