Merge pull request #5859 from Jaex/master

fixed #4669: Swap move/resize hotkeys in region capture so arrow keys moves shapes instead of resize
This commit is contained in:
Jaex 2021-10-04 01:49:07 +03:00 committed by GitHub
commit 65633e7cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -758,18 +758,20 @@ private void form_KeyDown(object sender, KeyEventArgs e)
{
Cursor.Position = Cursor.Position.Add(x, y);
}
else if (e.Control)
{
shape.OnResizing();
shape.Resize(x, y, true);
}
else if (e.Alt)
{
shape.OnResizing();
shape.Resize(x, y, false);
}
else
{
if (e.Control)
{
shape.OnMoving();
shape.Move(x, y);
}
else
{
shape.OnResizing();
shape.Resize(x, y, !e.Alt);
}
shape.OnMoving();
shape.Move(x, y);
}
}
}