From 6ab729d6d0293f539e6ddc53af98bacd5da06862 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 17 Mar 2012 11:23:03 -0300 Subject: [PATCH] Add support for dissable keyboard actions. --- .../src/main/javascript/DesignerKeyboard.js | 16 +++++--- .../src/test/javascript/static/editor.html | 41 ------------------- wise-webapp/doc/Configuration.md | 0 3 files changed, 11 insertions(+), 46 deletions(-) delete mode 100644 mindplot/src/test/javascript/static/editor.html create mode 100644 wise-webapp/doc/Configuration.md diff --git a/mindplot/src/main/javascript/DesignerKeyboard.js b/mindplot/src/main/javascript/DesignerKeyboard.js index fa396b17..47f53a2c 100644 --- a/mindplot/src/main/javascript/DesignerKeyboard.js +++ b/mindplot/src/main/javascript/DesignerKeyboard.js @@ -18,6 +18,17 @@ mindplot.DesignerKeyboard = new Class({ Extends:Keyboard, + Static:{ + register: function(designer) { + this._instance = new mindplot.DesignerKeyboard(designer); + this._instance.activate(); + }, + + getInstance: function(){ + return this._instance; + } + }, + initialize : function(designer) { $assert(designer, "designer can not be null"); this.parent({defaultEventType: 'keydown'}); @@ -335,8 +346,3 @@ mindplot.DesignerKeyboard = new Class({ } }); - -mindplot.DesignerKeyboard.register = function(designer) { - this._instance = new mindplot.DesignerKeyboard(designer); - this._instance.activate(); -}; \ No newline at end of file diff --git a/mindplot/src/test/javascript/static/editor.html b/mindplot/src/test/javascript/static/editor.html deleted file mode 100644 index 943322db..00000000 --- a/mindplot/src/test/javascript/static/editor.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
- The button -
- - - - \ No newline at end of file diff --git a/wise-webapp/doc/Configuration.md b/wise-webapp/doc/Configuration.md new file mode 100644 index 00000000..e69de29b