almost done

This commit is contained in:
Peter Cottle 2013-01-01 14:49:03 -08:00
parent 0d6f2516cb
commit 69235f4b37
6 changed files with 10 additions and 32 deletions

View file

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