summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_Bar.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-07-11 05:36:39 +0000
committerBill Spitzak <spitzak@gmail.com>2000-07-11 05:36:39 +0000
commitba1d83cf47b115df9121b5427f2472287fe1c511 (patch)
tree9a19dd3e916842fa2c284c0c41764a91a23b8cd9 /src/Fl_Menu_Bar.cxx
parent42cf3ff81544926ab4be3f4f3e97fb2d87b228ed (diff)
Shortcuts for submenu titles in a menubar pop up the submenu (rather than calling the callback)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu_Bar.cxx')
-rw-r--r--src/Fl_Menu_Bar.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Menu_Bar.cxx b/src/Fl_Menu_Bar.cxx
index b412f99d9..82d2efb89 100644
--- a/src/Fl_Menu_Bar.cxx
+++ b/src/Fl_Menu_Bar.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Menu_Bar.cxx,v 1.7.2.2 2000/06/05 21:20:54 mike Exp $"
+// "$Id: Fl_Menu_Bar.cxx,v 1.7.2.3 2000/07/11 05:36:39 spitzak Exp $"
//
// Menu bar widget for the Fast Light Tool Kit (FLTK).
//
@@ -50,14 +50,14 @@ int Fl_Menu_Bar::handle(int event) {
picked(v);
return 1;
case FL_SHORTCUT:
+ if (visible_r()) {if ((v = menu()->find_shortcut())) goto J1;}
v = menu()->test_shortcut();
if (v) {picked(v); return 1;}
- if (visible_r() && (v = menu()->find_shortcut())) goto J1;
return 0;
}
return 0;
}
//
-// End of "$Id: Fl_Menu_Bar.cxx,v 1.7.2.2 2000/06/05 21:20:54 mike Exp $".
+// End of "$Id: Fl_Menu_Bar.cxx,v 1.7.2.3 2000/07/11 05:36:39 spitzak Exp $".
//