fixing bugs in shortcuts and modal dialog with errors

This commit is contained in:
Ezequiel Bergamaschi
2014-12-26 20:01:15 -03:00
parent 8a0194c26c
commit bfd00c9649
3 changed files with 27 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ mindplot.DesignerKeyboard = new Class({
// If a modifier is press, the key selected must be ignored.
var pressKey = String.fromCharCode(keyCode);
if (event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {
pressKey = "";
return;
}
nodes[0].showTextEditor(pressKey);
event.stopPropagation();