mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 09:20:03 +02:00
nice keyboard refreshing and all htat jazz workingggg
This commit is contained in:
parent
69235f4b37
commit
a2c3fcabf5
3 changed files with 66 additions and 8 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue