Handle keypress events properly for the selection.

pull/3/head
Jonathan Moore Liles 2008-05-29 13:01:10 -05:00
parent 4163d0230b
commit edb665ebc3
2 changed files with 4 additions and 1 deletions

View File

@ -305,6 +305,9 @@ Audio_Region::handle ( int m )
case FL_UNFOCUS:
return 1;
case FL_KEYBOARD:
if ( selected() )
/* make sure the user_data fields of menu point to this object */
update_menu();
return _menu->test_shortcut() != 0;
case FL_ENTER:
{

View File

@ -367,7 +367,7 @@ Sequence::handle ( int m )
}
if ( Sequence_Widget::belowmouse() )
return Sequence_Widget::belowmouse()->handle( m );
return Sequence_Widget::belowmouse()->dispatch( m );
case FL_NO_EVENT:
/* garbage from overlay window */
return 0;