Browse Source

Handle keypress events properly for the selection.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
edb665ebc3
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      Timeline/Audio_Region.C
  2. +1
    -1
      Timeline/Sequence.C

+ 3
- 0
Timeline/Audio_Region.C View File

@@ -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:
{ {


+ 1
- 1
Timeline/Sequence.C View File

@@ -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…
Cancel
Save