nice keyboard refreshing and all htat jazz workingggg

This commit is contained in:
Peter Cottle 2013-01-01 14:54:04 -08:00
parent 69235f4b37
commit a2c3fcabf5
3 changed files with 66 additions and 8 deletions

View file

@ -127,6 +127,7 @@ var ModalView = Backbone.View.extend({
Main.getEventBaton().stealBaton('keydown', this.onKeyDown, this);
Main.getEventBaton().stealBaton('keyup', this.onKeyUp, this);
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
$('#commandTextField').blur();
},
@ -135,12 +136,17 @@ var ModalView = Backbone.View.extend({
Main.getEventBaton().releaseBaton('keydown', this.onKeyDown, this);
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
},
onWindowFocus: function(e) {
console.log('window focus doing nothing', e);
},
documentClick: function(e) {
console.log('doc click doing nothing', e);
},
onKeyDown: function(e) {
e.preventDefault();
},