From ba1d83cf47b115df9121b5427f2472287fe1c511 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Tue, 11 Jul 2000 05:36:39 +0000 Subject: 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 --- src/Fl_Menu_Bar.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3