removing fixme

This commit is contained in:
Ezequiel Bergamaschi 2014-03-15 03:56:10 -03:00
parent 7b5835f2e9
commit 4bcea1363e
3 changed files with 8 additions and 6 deletions

View File

@ -140,6 +140,7 @@
<include>ScreenManager.js</include> <include>ScreenManager.js</include>
<include>Workspace.js</include> <include>Workspace.js</include>
<include>ShrinkConnector.js</include> <include>ShrinkConnector.js</include>
<include>Keyboard.js</include>
<include>DesignerKeyboard.js</include> <include>DesignerKeyboard.js</include>
<include>Keyboard.js</include> <include>Keyboard.js</include>
<include>TopicStyle.js</include> <include>TopicStyle.js</include>

View File

@ -17,7 +17,7 @@
*/ */
mindplot.DesignerKeyboard = new Class({ mindplot.DesignerKeyboard = new Class({
//Extends: mindplot.Keyboard, Extends: mindplot.Keyboard,
Static:{ Static:{
register:function (designer) { register:function (designer) {
this._instance = new mindplot.DesignerKeyboard(designer); this._instance = new mindplot.DesignerKeyboard(designer);
@ -34,11 +34,6 @@ mindplot.DesignerKeyboard = new Class({
this._registerEvents(designer); this._registerEvents(designer);
}, },
//FIXME: mover al parent
addShortcut: function(shortcut, callback) {
$(document).bind('keydown', shortcut, callback);
},
_registerEvents:function (designer) { _registerEvents:function (designer) {
// Try with the keyboard .. // Try with the keyboard ..

View File

@ -17,6 +17,12 @@
*/ */
mindplot.Keyboard = new Class({ mindplot.Keyboard = new Class({
initialize:function () { initialize:function () {
},
addShortcut: function(shortcut, callback) {
$(document).bind('keydown', shortcut, callback);
} }
}); });