Handle deselection specially.

This commit is contained in:
Jonathan Moore Liles 2008-03-03 18:35:40 -06:00
parent 4f2a6a28d1
commit 8533f49d87
1 changed files with 7 additions and 4 deletions

View File

@ -282,12 +282,15 @@ Region::handle ( int m )
if ( Fl::event_state() & FL_CTRL ) if ( Fl::event_state() & FL_CTRL )
normalize(); normalize();
else else
{
if ( Track_Widget::current() == this )
{ {
if ( selected() ) if ( selected() )
deselect(); deselect();
else else
select(); select();
} }
}
redraw(); redraw();
goto changed; goto changed;