diff options
| author | Greg Ercolano <erco@seriss.com> | 2010-10-26 10:31:23 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2010-10-26 10:31:23 +0000 |
| commit | bfcb44545334fe2333a89ce277ca26f48d2ebb8c (patch) | |
| tree | d91c0ee1c2cff40257fc8675955f99418562b2aa | |
| parent | 4574a63b3eccc52d07e1191a31dd9b8995ba3ed4 (diff) | |
Added handling of Tab key for Fl_Table keyboard navigation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Table.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_Table.cxx b/src/Fl_Table.cxx index 0eb5a0b80..9a14ec1d9 100644 --- a/src/Fl_Table.cxx +++ b/src/Fl_Table.cxx @@ -990,6 +990,13 @@ int Fl_Table::handle(int event) { 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); |
