mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Allowed Zoom feature to work with PavNum keys
PavNum keys (0 / + / -) will now work for the zoom feature
This commit is contained in:
parent
91a73d37b4
commit
fbbf32d92c
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
|
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)
|
switch (e.KeyData)
|
||||||
{
|
{
|
||||||
case Keys.Control | Keys.Alt | Keys.D0:
|
case Keys.Control | Keys.Alt | Keys.D0:
|
||||||
|
case Keys.Control | Keys.Alt | Keys.NumPad0:
|
||||||
ZoomToFit();
|
ZoomToFit();
|
||||||
break;
|
break;
|
||||||
case Keys.Control | Keys.D0:
|
case Keys.Control | Keys.D0:
|
||||||
|
case Keys.Control | Keys.NumPad0:
|
||||||
ZoomFactor = 1;
|
ZoomFactor = 1;
|
||||||
CenterCanvas();
|
CenterCanvas();
|
||||||
break;
|
break;
|
||||||
case Keys.Control | Keys.Oemplus:
|
case Keys.Control | Keys.Oemplus:
|
||||||
|
case Keys.Control | Keys.Add:
|
||||||
Zoom(true, false);
|
Zoom(true, false);
|
||||||
break;
|
break;
|
||||||
case Keys.Control | Keys.OemMinus:
|
case Keys.Control | Keys.OemMinus:
|
||||||
|
case Keys.Control | Keys.Subtract:
|
||||||
Zoom(false, false);
|
Zoom(false, false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1695,4 +1699,4 @@ protected override void Dispose(bool disposing)
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue