From b881ca0b94488fb888946a349970dac537f3de70 Mon Sep 17 00:00:00 2001 From: JKlingen Date: Sun, 25 Mar 2012 21:12:07 +0000 Subject: [PATCH] image editor: fixed move-by-10-px using shift+arrow keys git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1722 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Drawing/Surface.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Greenshot/Drawing/Surface.cs b/Greenshot/Drawing/Surface.cs index 09ee20856..8fb21f2f0 100644 --- a/Greenshot/Drawing/Surface.cs +++ b/Greenshot/Drawing/Surface.cs @@ -1105,7 +1105,8 @@ namespace Greenshot.Drawing { public void ProcessCmdKey(Keys k) { if (selectedElements.Count > 0) { - int px = (k == Keys.Shift) ? 10 : 1; + bool shiftModifier = (Control.ModifierKeys & Keys.Shift) == Keys.Shift; + int px = shiftModifier ? 10 : 1; Point moveBy = Point.Empty; switch (k) {