add:  gToolbarButtonSelected.focus(); 
context: function prefStartup() {    keyInitHandler();    /* Pre select the general pane */     gPanelSelected=document.getElementById("general-pane");    gToolbarButtonSelected=document.getElementById("general-button");    gToolbarButtonSelected.className="base-button prefselectedbutton";  // local to preferences.css (may have to be promoted minimo.css)    /* Initialize the pref service instance */     try {      gPref = Components.classes["@mozilla.org/preferences-service;1"]                         .getService(Components.interfaces.nsIPrefBranch);    } catch (ignore) { alert(ignore)}    // This is now deprecated, since we have XBL-defined elements to handle the list of registered pref ID elements.     // var regPrefElements= new Array ( 'browserStartupHomepage', 'enableImages', 'ssr', 'sitessr','skey', 'dumpJS', 'UseProxy', 'networkProxyHTTP', 'networkProxyHTTP_Port', 'browserDisplayZoomUI', 'browserDisplayZoomContent'  );    // Now depends on the preferenceset.preferenceitem XBL implementation.     // in minimo/content/bindings/preferences.css and preferences.xml    syncPrefLoadDOM(document.getElementById("prefsInstance").prefArray);    syncUIZoom(); // from common.js }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/05490ab7e6fc60fd3776ef7f48065bd1a91408c4/preferences.js/buggy/minimo/chrome/content/preferences/preferences.js