Added 'selectNew' config option to disable auto-selection when an element is created
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1911 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
28b9c0cfd7
commit
7ce0c3336b
|
@ -112,6 +112,7 @@ var svgns = "http://www.w3.org/2000/svg",
|
|||
// Default configuration options
|
||||
var curConfig = {
|
||||
show_outside_canvas: true,
|
||||
selectNew: true,
|
||||
dimensions: [640, 480]
|
||||
};
|
||||
|
||||
|
@ -3527,7 +3528,9 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
|
|||
if(current_mode === "path") {
|
||||
pathActions.toEditMode(element);
|
||||
} else {
|
||||
selectOnly([element], true);
|
||||
if(curConfig.selectNew) {
|
||||
selectOnly([element], true);
|
||||
}
|
||||
}
|
||||
// we create the insert command that is stored on the stack
|
||||
// undo means to call cmd.unapply(), redo means to call cmd.apply()
|
||||
|
|
Loading…
Reference in New Issue