Don't eat all keys in region input handler.

This commit is contained in:
Jonathan Moore Liles 2008-04-28 03:33:22 -05:00
parent 0eb8babb3e
commit 4af2a85cc7
1 changed files with 16 additions and 10 deletions

View File

@ -262,21 +262,27 @@ Region::handle ( int m )
_fade_in.length = offset; _fade_in.length = offset;
printf( "setting fade in length to %lu\n", _fade_in.length ); printf( "setting fade in length to %lu\n", _fade_in.length );
redraw();
return 1;
} }
else else if ( Fl::event_key() == FL_F + 4 )
if ( Fl::event_key() == FL_F + 4 ) {
{ long offset = length() - x_to_offset( X );
long offset = length() - x_to_offset( X );
if ( offset > 0 ) if ( offset > 0 )
_fade_out.length = offset; _fade_out.length = offset;
printf( "setting fade out length to %lu\n", _fade_in.length ); printf( "setting fade out length to %lu\n", _fade_in.length );
}
redraw();
return 1;
}
return 0;
redraw();
return 1;
} }
case FL_PUSH: case FL_PUSH:
{ {