Fixed issue 152: Prevent selection of toolbar elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@517 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -318,6 +318,13 @@ function svg_edit_setup() {
|
||||
|
||||
svgCanvas.changeSelectedAttribute(attr, val);
|
||||
});
|
||||
|
||||
// Prevent selection of elements when shift-clicking
|
||||
$('#palette').mouseover(function() {
|
||||
var inp = $('<input type="hidden">');
|
||||
$(this).append(inp);
|
||||
inp.focus().remove();
|
||||
});
|
||||
|
||||
$('.palette_item').click(function(evt){
|
||||
var picker = (evt.shiftKey ? "stroke" : "fill");
|
||||
|
||||
Reference in New Issue
Block a user