mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
almost done
This commit is contained in:
parent
0d6f2516cb
commit
69235f4b37
6 changed files with 10 additions and 32 deletions
|
@ -23,7 +23,6 @@ var init = function(){
|
|||
|
||||
// we always want to focus the text area to collect input
|
||||
var focusTextArea = function() {
|
||||
console.log('focusing text area');
|
||||
$('#commandTextField').focus();
|
||||
};
|
||||
focusTextArea();
|
||||
|
@ -74,15 +73,8 @@ function UI() {
|
|||
el: $('#commandLineHistory'),
|
||||
collection: this.commandCollection
|
||||
});
|
||||
|
||||
$('#commandTextField').focus();
|
||||
eventBaton.stealBaton('windowFocus', this.onWindowFocus, this);
|
||||
}
|
||||
|
||||
UI.prototype.onWindowFocus = function() {
|
||||
this.commandPromptView.focus();
|
||||
};
|
||||
|
||||
exports.getEvents = function() {
|
||||
return events;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue