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 )
normalize();
else
{
if ( Track_Widget::current() == this )
{
if ( selected() )
deselect();
else
select();
}
}
redraw();
goto changed;