From 258b4136ccf58dc8ba49f22893f595d588586c35 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 30 Jan 2010 00:30:10 -0600 Subject: [PATCH] Add FL_Menu keybinding to popup Track context menu. --- Timeline/Track.C | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Timeline/Track.C b/Timeline/Track.C index 4d84861..8c569dc 100644 --- a/Timeline/Track.C +++ b/Timeline/Track.C @@ -825,7 +825,17 @@ Track::handle ( int m ) switch ( m ) { case FL_KEYBOARD: - return menu().test_shortcut() || Fl_Group::handle( m ); + { + Fl_Menu_Button * men = &menu(); + + if ( Fl::event_key() == FL_Menu ) + { + menu_popup( men ); + return 1; + } + else + return men->test_shortcut() || Fl_Group::handle( m ); + } case FL_MOUSEWHEEL: { Logger log( this );