Fix Issue 78: Merge copy/paste button into one clone button

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@354 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-08-06 11:43:19 +00:00
parent 1840240003
commit 86173b1832
3 changed files with 10 additions and 22 deletions

View File

@@ -457,11 +457,8 @@ function svg_edit_setup() {
svgCanvas.redo();
};
var clickCopy = function(){
svgCanvas.copySelectedElements();
};
var clickPaste = function(){
svgCanvas.pasteElements();
var clickClone = function(){
svgCanvas.cloneSelectedElements();
};
var showSourceEditor = function(){
@@ -519,9 +516,8 @@ function svg_edit_setup() {
$('#tool_move_bottom').click(moveToBottomSelected);
$('#tool_undo').click(clickUndo);
$('#tool_redo').click(clickRedo);
$('#tool_paste').click(clickPaste);
$('#tool_copy').click(clickCopy);
$('#tool_copy_multi').click(clickCopy);
$('#tool_clone').click(clickClone);
$('#tool_clone_multi').click(clickClone);
// these two lines are required to make Opera work properly with the flyout mechanism
$('#tools_rect_show').click(clickSquare);
$('#tools_ellipse_show').click(clickCircle);
@@ -590,8 +586,7 @@ function svg_edit_setup() {
$(document).bind('keydown', {combi:'shift+z', disableInInput: true}, clickRedo);
$(document).bind('keydown', {combi:'y', disableInInput: true}, clickRedo);
$(document).bind('keydown', {combi:'u', disableInInput: true}, function(evt){showSourceEditor();evt.preventDefault();});
$(document).bind('keydown', {combi:'c', disableInInput: true}, clickCopy);
$(document).bind('keydown', {combi:'v', disableInInput: true}, clickPaste);
$(document).bind('keydown', {combi:'c', disableInInput: true}, clickClone);
$(document).bind('keydown', {combi:'esc', disableInInput: false}, hideSourceEditor);
// TODO: fix opacity being updated