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:
Alexis Deveria
2009-09-01 13:58:38 +00:00
parent 4fd3442a0c
commit ee9ecb1960

View File

@@ -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");