Add support for dissable keyboard actions.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-17 11:23:03 -03:00
parent 90eb8346db
commit 6ab729d6d0
3 changed files with 11 additions and 46 deletions

View File

@@ -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();
};