Here's a patch against r7680 adding keyboard nav to Fl_Tree: http://seriss.com/people/erco/fltk/tmp/Fl_Tree-add-keyboard-nav-to-r7680.patch
With this, you can use up/down to move the focus box, and spacebar to toggle items. Also, shift-up/down will extend selections. And left/right will open/close items. Note however this patch *breaks* child FLTK widgets of the Fl_Tree. For instance, in the tree.cxx demo, the FLTK buttons "ccc button", "d1" and "d2" that are in the tree do not work when pressed or navigated to. The reason for this is, I was having a hard time figuring out how to merge the event handling for the tree's own widgets and FLTK's own child widgets, esp. for keyboard nav. If someone can figure that one out, that'd be great, as I couldn't quite get my head around how to handle that. Greg Ercolano wrote: > I'll see if I can merge it with current, and provide some diffs.. > > Domingo Alvarez Duarte wrote: >> Can you make availlable your Fl_Tree with keyboard navigation ? > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

