From e856260fbbb83e5a7f768421e6631995ed388e81 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sat, 15 Mar 2014 03:56:10 -0300 Subject: [PATCH] removing fixme --- mindplot/pom.xml | 1 + mindplot/src/main/javascript/DesignerKeyboard.js | 7 +------ mindplot/src/main/javascript/Keyboard.js | 6 ++++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/mindplot/pom.xml b/mindplot/pom.xml index d2cf8e8a..c24fd1e9 100644 --- a/mindplot/pom.xml +++ b/mindplot/pom.xml @@ -140,6 +140,7 @@ ScreenManager.js Workspace.js ShrinkConnector.js + Keyboard.js DesignerKeyboard.js Keyboard.js TopicStyle.js diff --git a/mindplot/src/main/javascript/DesignerKeyboard.js b/mindplot/src/main/javascript/DesignerKeyboard.js index 2a76dd9f..2d988b45 100644 --- a/mindplot/src/main/javascript/DesignerKeyboard.js +++ b/mindplot/src/main/javascript/DesignerKeyboard.js @@ -17,7 +17,7 @@ */ mindplot.DesignerKeyboard = new Class({ - //Extends: mindplot.Keyboard, + Extends: mindplot.Keyboard, Static:{ register:function (designer) { this._instance = new mindplot.DesignerKeyboard(designer); @@ -34,11 +34,6 @@ mindplot.DesignerKeyboard = new Class({ this._registerEvents(designer); }, - //FIXME: mover al parent - addShortcut: function(shortcut, callback) { - $(document).bind('keydown', shortcut, callback); - }, - _registerEvents:function (designer) { // Try with the keyboard .. diff --git a/mindplot/src/main/javascript/Keyboard.js b/mindplot/src/main/javascript/Keyboard.js index 05f00601..6053a8f4 100644 --- a/mindplot/src/main/javascript/Keyboard.js +++ b/mindplot/src/main/javascript/Keyboard.js @@ -17,6 +17,12 @@ */ mindplot.Keyboard = new Class({ + initialize:function () { + }, + + addShortcut: function(shortcut, callback) { + $(document).bind('keydown', shortcut, callback); } + });