summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/table-spreadsheet-with-keyboard-nav.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/table-spreadsheet-with-keyboard-nav.cxx b/examples/table-spreadsheet-with-keyboard-nav.cxx
index e675e4ee7..03ba747f5 100644
--- a/examples/table-spreadsheet-with-keyboard-nav.cxx
+++ b/examples/table-spreadsheet-with-keyboard-nav.cxx
@@ -290,6 +290,7 @@ void setrows_cb(Fl_Widget* w, void* v) {
}
int main() {
+ Fl::option(Fl::OPTION_ARROW_FOCUS, 1); // we want arrow keys to navigate table's widgets
Fl_Double_Window *win = new Fl_Double_Window(922, 382, "Fl_Table Spreadsheet with Keyboard Navigation");
Spreadsheet* table = new Spreadsheet(20, 20, win->w()-80, win->h()-80);
// Table rows