mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Merge pull request #6334 from Gurgarath/develop
Allowed Zoom feature to work with PavNum keys
This commit is contained in:
commit
add3514731
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
#region License Information (GPL v3)
|
||||
#region License Information (GPL v3)
|
||||
|
||||
/*
|
||||
ShareX - A program that allows you to take screenshots and share any file type
|
||||
|
@ -664,16 +664,20 @@ internal void RegionCaptureForm_KeyDown(object sender, KeyEventArgs e)
|
|||
switch (e.KeyData)
|
||||
{
|
||||
case Keys.Control | Keys.Alt | Keys.D0:
|
||||
case Keys.Control | Keys.Alt | Keys.NumPad0:
|
||||
ZoomToFit();
|
||||
break;
|
||||
case Keys.Control | Keys.D0:
|
||||
case Keys.Control | Keys.NumPad0:
|
||||
ZoomFactor = 1;
|
||||
CenterCanvas();
|
||||
break;
|
||||
case Keys.Control | Keys.Oemplus:
|
||||
case Keys.Control | Keys.Add:
|
||||
Zoom(true, false);
|
||||
break;
|
||||
case Keys.Control | Keys.OemMinus:
|
||||
case Keys.Control | Keys.Subtract:
|
||||
Zoom(false, false);
|
||||
break;
|
||||
}
|
||||
|
@ -1698,4 +1702,4 @@ protected override void Dispose(bool disposing)
|
|||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue