From edb665ebc34ea8812555bf690450bd9f884380a0 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 29 May 2008 13:01:10 -0500 Subject: [PATCH] Handle keypress events properly for the selection. --- Timeline/Audio_Region.C | 3 +++ Timeline/Sequence.C | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Timeline/Audio_Region.C b/Timeline/Audio_Region.C index 8c18572..68e0604 100644 --- a/Timeline/Audio_Region.C +++ b/Timeline/Audio_Region.C @@ -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: { diff --git a/Timeline/Sequence.C b/Timeline/Sequence.C index ff5f8ba..801c3fd 100644 --- a/Timeline/Sequence.C +++ b/Timeline/Sequence.C @@ -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;