mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
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:
parent
c5fef12c9b
commit
2a26be0a37
4 changed files with 56 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue