mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-30 09:44:26 +02:00
feel gerat about it now
This commit is contained in:
parent
a2c3fcabf5
commit
6e61ffda59
2 changed files with 12 additions and 0 deletions
|
@ -8741,6 +8741,8 @@ var ModalView = Backbone.View.extend({
|
||||||
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
|
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
|
||||||
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
|
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
|
||||||
|
|
||||||
|
// blur the text input field so keydown events will not be caught by our
|
||||||
|
// preventDefaulters, allowing people to still refresh and launch inspector (etc)
|
||||||
$('#commandTextField').blur();
|
$('#commandTextField').blur();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -8749,6 +8751,8 @@ var ModalView = Backbone.View.extend({
|
||||||
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
|
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
|
||||||
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
|
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
|
||||||
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
|
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
|
||||||
|
|
||||||
|
Main.getEventBaton().trigger('windowFocus');
|
||||||
},
|
},
|
||||||
|
|
||||||
onWindowFocus: function(e) {
|
onWindowFocus: function(e) {
|
||||||
|
@ -17732,6 +17736,8 @@ var ModalView = Backbone.View.extend({
|
||||||
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
|
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
|
||||||
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
|
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
|
||||||
|
|
||||||
|
// blur the text input field so keydown events will not be caught by our
|
||||||
|
// preventDefaulters, allowing people to still refresh and launch inspector (etc)
|
||||||
$('#commandTextField').blur();
|
$('#commandTextField').blur();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -17740,6 +17746,8 @@ var ModalView = Backbone.View.extend({
|
||||||
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
|
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
|
||||||
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
|
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
|
||||||
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
|
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
|
||||||
|
|
||||||
|
Main.getEventBaton().trigger('windowFocus');
|
||||||
},
|
},
|
||||||
|
|
||||||
onWindowFocus: function(e) {
|
onWindowFocus: function(e) {
|
||||||
|
|
|
@ -129,6 +129,8 @@ var ModalView = Backbone.View.extend({
|
||||||
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
|
Main.getEventBaton().stealBaton('windowFocus', this.onWindowFocus, this);
|
||||||
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
|
Main.getEventBaton().stealBaton('documentClick', this.onDocumentClick, this);
|
||||||
|
|
||||||
|
// blur the text input field so keydown events will not be caught by our
|
||||||
|
// preventDefaulters, allowing people to still refresh and launch inspector (etc)
|
||||||
$('#commandTextField').blur();
|
$('#commandTextField').blur();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -137,6 +139,8 @@ var ModalView = Backbone.View.extend({
|
||||||
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
|
Main.getEventBaton().releaseBaton('keyup', this.onKeyUp, this);
|
||||||
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
|
Main.getEventBaton().releaseBaton('windowFocus', this.onWindowFocus, this);
|
||||||
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
|
Main.getEventBaton().releaseBaton('documentClick', this.onDocumentClick, this);
|
||||||
|
|
||||||
|
Main.getEventBaton().trigger('windowFocus');
|
||||||
},
|
},
|
||||||
|
|
||||||
onWindowFocus: function(e) {
|
onWindowFocus: function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue