keyboard handling (work in progress)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@79 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Pavol Rusnak
2009-06-09 13:28:37 +00:00
parent 69eabb16b9
commit d843eb92dd
4 changed files with 110 additions and 42 deletions

View File

@@ -482,13 +482,15 @@ function SvgCanvas(c)
}
d_attr = null;
obj_num++;
if (!keep) {
element.parentNode.removeChild(element);
element = null;
} else if (element != null) {
element.setAttribute("opacity", current_opacity);
cleanupElement(element);
call("changed",element);
if (element != null) {
if (!keep) {
element.parentNode.removeChild(element);
element = null;
} else {
element.setAttribute("opacity", current_opacity);
cleanupElement(element);
call("changed",element);
}
}
}