From eaba474023d3f6bd265f577baaa9cce8b4168d9b Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Mon, 5 Oct 2009 21:50:59 +0000 Subject: [PATCH] Prevent selection bug when clicking layers while accidentally holding down shift git-svn-id: http://svg-edit.googlecode.com/svn/trunk@769 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 66c81039..d471c482 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -1219,6 +1219,7 @@ function svg_edit_setup() { var row = $(this.parentNode); row.addClass("layersel"); svgCanvas.setCurrentLayer(this.textContent); + evt.preventDefault(); }); $('#layerlist td.layervis').click(function(evt){ var row = $(this.parentNode).prevAll().length;