Merge pull request #950 from davidruhmann/key-region-selection

resolve right click cancel to insert state
This commit is contained in:
Jaex 2015-08-27 20:03:01 +03:00
commit d0e57efdfa

View file

@ -347,11 +347,18 @@ private void surface_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
EndRegionSelection();
if (IsMoving || IsCreating)
{
EndRegionSelection();
}
}
else if (e.Button == MouseButtons.Right)
{
CancelRegionSelection();
if (IsCreating)
{
EndRegionSelection();
}
}
}
@ -560,4 +567,4 @@ public Rectangle CombineAreas()
return Rectangle.Empty;
}
}
}
}