Handle deselection specially.
This commit is contained in:
parent
4f2a6a28d1
commit
8533f49d87
3
Region.C
3
Region.C
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue