Add FL_Menu keybinding to popup Track context menu.

pull/3/head
Jonathan Moore Liles 2010-01-30 00:30:10 -06:00
parent b3fb6aa9b7
commit 258b4136cc
1 changed files with 11 additions and 1 deletions

View File

@ -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 );