mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
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:
commit
65633e7cea
1 changed files with 12 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue