mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Merge pull request #950 from davidruhmann/key-region-selection
resolve right click cancel to insert state
This commit is contained in:
commit
d0e57efdfa
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue