Handle keypress events properly for the selection.
This commit is contained in:
parent
4163d0230b
commit
edb665ebc3
|
@ -305,6 +305,9 @@ Audio_Region::handle ( int m )
|
||||||
case FL_UNFOCUS:
|
case FL_UNFOCUS:
|
||||||
return 1;
|
return 1;
|
||||||
case FL_KEYBOARD:
|
case FL_KEYBOARD:
|
||||||
|
if ( selected() )
|
||||||
|
/* make sure the user_data fields of menu point to this object */
|
||||||
|
update_menu();
|
||||||
return _menu->test_shortcut() != 0;
|
return _menu->test_shortcut() != 0;
|
||||||
case FL_ENTER:
|
case FL_ENTER:
|
||||||
{
|
{
|
||||||
|
|
|
@ -367,7 +367,7 @@ Sequence::handle ( int m )
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Sequence_Widget::belowmouse() )
|
if ( Sequence_Widget::belowmouse() )
|
||||||
return Sequence_Widget::belowmouse()->handle( m );
|
return Sequence_Widget::belowmouse()->dispatch( m );
|
||||||
case FL_NO_EVENT:
|
case FL_NO_EVENT:
|
||||||
/* garbage from overlay window */
|
/* garbage from overlay window */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue