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