Fix Issue 29: Key bindings for moving selected, move to top/back, delete for Macbook users
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@186 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -973,6 +973,18 @@ function SvgCanvas(c)
|
||||
t.parentNode.insertBefore(t, t.parentNode.firstChild);
|
||||
}
|
||||
}
|
||||
|
||||
this.moveSelectedElement = function(dx,dy) {
|
||||
if (selected != null) {
|
||||
// TODO: move...
|
||||
selectedBBox = selected.getBBox();
|
||||
selectedBBox.x += dx;
|
||||
selectedBBox.y += dy;
|
||||
|
||||
recalculateSelectedDimensions();
|
||||
recalculateSelectedOutline();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user