Fixed file handling, fixed wrong order in the title of the editor, changed left-click handling of the context menu. Added a boolean in the ProcessCmdKey of the surface.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2327 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-11-28 18:59:01 +00:00
commit 2a26be0a37
4 changed files with 56 additions and 8 deletions

View file

@ -1556,10 +1556,11 @@ namespace Greenshot.Drawing {
}
/// <summary>
/// Process key
/// Process key presses on the surface, this is called from the editor (and NOT an override from the Control)
/// </summary>
/// <param name="k"></param>
public void ProcessCmdKey(Keys k) {
/// <param name="k">Keys</param>
/// <returns>false if no keys were processed</returns>
public bool ProcessCmdKey(Keys k) {
if (selectedElements.Count > 0) {
bool shiftModifier = (Control.ModifierKeys & Keys.Shift) == Keys.Shift;
int px = shiftModifier ? 10 : 1;
@ -1604,13 +1605,15 @@ namespace Greenshot.Drawing {
RemoveSelectedElements();
break;*/
default:
return;
return false;
}
if (!Point.Empty.Equals(moveBy)) {
selectedElements.MakeBoundsChangeUndoable(true);
selectedElements.MoveBy(moveBy.X, moveBy.Y);
}
return true;
}
return false;
}
/// <summary>