mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12: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,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;
|
||||
}
|
||||
|
@ -1695,4 +1699,4 @@ protected override void Dispose(bool disposing)
|
|||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue