mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 579412 - Focus inputNode on JSTerm when opening the HUD/Console, r=dietrich
This commit is contained in:
parent
abf43f852b
commit
89d82725a0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user