Bug 562483 - The search input should get the focus after loading about:config [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Fri, 30 Apr 2010 14:54:22 -0400
changeset 1540 794f2e763729328b5f4e6320d0823635ec26b5d7
parent 1539 0cbf2095f27e0672d858be06ced4a98e8690415e
child 1541 8feac292886a02c18bfe0140e7d41f40071c4316
push id1383
push usermfinkle@mozilla.com
push dateFri, 30 Apr 2010 19:01:57 +0000
reviewersmfinkle
bugs562483
Bug 562483 - The search input should get the focus after loading about:config [r=mfinkle]
chrome/content/config.js
--- a/chrome/content/config.js
+++ b/chrome/content/config.js
@@ -50,16 +50,18 @@ var ViewConfig = {
 
   init: function init() {
     window.addEventListener("resize", this, false);
     window.addEventListener("prefchange", this, false);
     window.addEventListener("prefnew", this, false);
 
     this._handleWindowResize();
     this.filter("");
+
+    document.getElementById("textbox").focus();
   },
 
   uninit: function uninit() {
     window.removeEventListener("resize", this, false);
     window.removeEventListener("prefchange", this, false);
     window.removeEventListener("prefnew", this, false);
   },