DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1877
Version: 1.1-current
Pressing back-tab in a menu wraps from top to bottom. Pressing tab,
however, does not wrap from bottom to top.
I noticed this in FLWM and found it quite annoying (alt+tab
functionality).
I've attached a fix. It's just two lines. The change makes tab processing
very similar to the existing back-tab processing.
(I tested the patch with release 1.1.7, but I verified in the
fltk-1.1.x-r6027.tar.bz2 snapshot that the relevant code still the same.)
I've tested the fix (via FLWM) on various linux boxen and with cygwin
using X11 (not tested with W32 GDI (but presumed to work)).
Link: http://www.fltk.org/str.php?L1877
Version: 1.1-current
--- orig/Fl_Menu.cxx 2008-02-04 20:15:19.703125000 -0700
+++ Fl_Menu.cxx 2008-02-04 20:17:55.437500000 -0700
@@ -548,6 +548,8 @@
return 1;
case FL_Tab:
if (Fl::event_shift()) goto BACKTAB;
+ if (!forward(pp.menu_number)) {pp.item_number =
-1;forward(pp.menu_number);}
+ return 1;
case FL_Down:
if (pp.menu_number || !pp.menubar) forward(pp.menu_number);
else if (pp.menu_number < pp.nummenus-1) forward(pp.menu_number+1);
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs