bug 579412 - Focus inputNode on JSTerm when opening the HUD/Console, r=dietrich

This commit is contained in:
Julian Viereck 2010-07-23 09:51:09 -03:00
parent abf43f852b
commit 89d82725a0

View File

@ -1522,6 +1522,7 @@ function HeadsUpDisplay(aConfig)
this.contentWindow = aConfig.contentWindow;
this.uriSpec = aConfig.contentWindow.location.href;
this.reattachConsole();
this.jsterm.inputNode.focus();
return;
}
@ -1627,6 +1628,7 @@ function HeadsUpDisplay(aConfig)
// create the JSTerm input element
try {
this.createConsoleInput(this.contentWindow, this.consoleWrap, this.outputNode);
this.jsterm.inputNode.focus();
}
catch (ex) {
Cu.reportError(ex);