From 8f5f540b231eaf992a5b8e1535fc10e65f76ae93 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 21 Dec 2009 13:36:49 +0000 Subject: [PATCH] Fixed issue 366: Clone Fires Twice git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1074 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 64385262..5f799b0a 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2034,8 +2034,7 @@ function svg_edit_setup() { {sel:'#tool_source_save', fn: saveSourceEditor, evt: 'click'}, {sel:'#tool_docprops_save', fn: saveDocProperties, evt: 'click'}, {sel:'#tool_docprops', fn: showDocProperties, evt: 'click', key: [modKey+'I', true]}, - {sel:'#tool_delete', fn: deleteSelected, evt: 'click', key: ['del/backspace', true]}, - {sel:'#tool_delete_multi', fn: deleteSelected, evt: 'click', key: ['del/backspace', true]}, + {sel:'#tool_delete,#tool_delete_multi', fn: deleteSelected, evt: 'click', key: ['del/backspace', true]}, {sel:'#tool_reorient', fn: reorientPath, evt: 'click'}, {sel:'#tool_node_link', fn: linkControlPoints, evt: 'click'}, {sel:'#tool_node_clone', fn: clonePathNode, evt: 'click'}, @@ -2045,8 +2044,7 @@ function svg_edit_setup() { {sel:'#tool_topath', fn: convertToPath, evt: 'click'}, {sel:'#tool_undo', fn: clickUndo, evt: 'click', key: [modKey+'Z', true]}, {sel:'#tool_redo', fn: clickRedo, evt: 'click', key: [modKey+'Y', true]}, - {sel:'#tool_clone', fn: clickClone, evt: 'click', key: [modKey+'C', true]}, - {sel:'#tool_clone_multi', fn: clickClone, evt: 'click', key: [modKey+'C', true]}, + {sel:'#tool_clone,#tool_clone_multi', fn: clickClone, evt: 'click', key: [modKey+'C', true]}, {sel:'#tool_group', fn: clickGroup, evt: 'click', key: [modKey+'G', true]}, {sel:'#tool_ungroup', fn: clickGroup, evt: 'click'}, {sel:'[id^=tool_align]', fn: clickAlign, evt: 'click'},