Made various code optimizations, removing several global and SvgCanvas variables. Also made all keyboard shortcuts preventDefault

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1126 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-12-29 21:20:45 +00:00
parent 9086e13901
commit 4ba0d002f0
2 changed files with 99 additions and 88 deletions

View File

@@ -2111,7 +2111,11 @@ function svg_edit_setup() {
$.each(keyval.split('/'), function(i, key) {
$(document).bind('keydown', {combi: key, disableInInput: disInInp}, function(e) {
fn();
if(pd) e.preventDefault();
if(pd) {
e.preventDefault();
}
// Prevent default on ALL keys?
return false;
});
});