Tab, space, backtab, and backspace can be used to navigate through menus.
They act like up/down arrows except they circulate around at the end.
Fixed a typo in fluid that made it not write when() correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
constFl_Menu_Item*current_item;// what mouse is pointing at
intmenu_number;// which menu it is in
intitem_number;// which item in that menu
intitem_number;// which item in that menu, -1 if none
menuwindow*p[20];// pointers to menus
intnummenus;
intmenubar;// if true p[0] is a menubar
@ -428,8 +428,7 @@ static inline void setitem(const Fl_Menu_Item* i, int m, int n) {
@@ -428,8 +428,7 @@ static inline void setitem(const Fl_Menu_Item* i, int m, int n) {
staticvoidsetitem(intm,intn){
menustate&p=*(::p);
p.current_item=(m>=0&&n>=0)?
p.current_item=p.p[m]->menu->next(n):0;
p.current_item=(n>=0)?p.p[m]->menu->next(n):0;
p.menu_number=m;
p.item_number=n;
}
@ -449,6 +448,7 @@ static int backward(int menu) { // previous item in menu menu if possible
@@ -449,6 +448,7 @@ static int backward(int menu) { // previous item in menu menu if possible