From 21cae14ddde7533a93d6ed6f1b901231ec90f7ee Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 27 Aug 2012 21:21:47 -0300 Subject: [PATCH] Fix event bug in windows. --- mindplot/src/main/javascript/DesignerKeyboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mindplot/src/main/javascript/DesignerKeyboard.js b/mindplot/src/main/javascript/DesignerKeyboard.js index 712df716..ac858469 100644 --- a/mindplot/src/main/javascript/DesignerKeyboard.js +++ b/mindplot/src/main/javascript/DesignerKeyboard.js @@ -79,7 +79,7 @@ mindplot.DesignerKeyboard = new Class({ }.bind(this), - 'ctrl+z':function () { + 'ctrl+z':function (event) { event.preventDefault(event); event.stopPropagation(); designer.undo(); @@ -93,7 +93,7 @@ mindplot.DesignerKeyboard = new Class({ }.bind(this), - 'ctrl+c':function () { + 'ctrl+c':function (event) { event.preventDefault(event); event.stopPropagation(); designer.copyToClipboard(); @@ -107,7 +107,7 @@ mindplot.DesignerKeyboard = new Class({ }.bind(this), - 'ctrl+v':function () { + 'ctrl+v':function (event) { event.preventDefault(event); event.stopPropagation();