rem: if (gReplaceDialog.findKey.value) gReplaceDialog.findKey.select(); 
add: if (gReplaceDialog.findInput.value) gReplaceDialog.findInput.select(); 
context: function onLoad(){  dump("EdReplace: onLoad()\n");  // Get the xul <editor> element:  var editorXUL = window.opener.document.getElementById("content-frame");  // Get the nsIWebBrowserFind service:  //gFindInst = editorXUL.docShell.QueryInterface(Components.interfaces.nsIWebBrowserFind);  gFindInst = editorXUL.webBrowserFind;  try {  // get the find service, which stores global find state    gFindService = Components.classes["@mozilla.org/find/find_service;1"]                         .getService(Components.interfaces.nsIFindService);  } catch(e) { dump("No find service!\n"); gFindService = 0; }  // Init gReplaceDialog.  initDialogObject();  try {    gReplaceDialog.editor = editorXUL.editor.QueryInterface(Components.interfaces.nsIPlaintextEditor);  } catch(e) { dump("Couldn't get an editor! " + e + "\n"); }  // If we don't get the editor, then we won't allow replacing.  // Change "OK" to "Find".  //dialog.find.label = document.getElementById("fBLT").getAttribute("label");  // Fill dialog.  loadDialog();  if (gReplaceDialog.findKey.value)    gReplaceDialog.findKey.select();  else    gReplaceDialog.findKey.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fcf44b284bb5d997c891069c621a48d6402fcac7/EdReplace.js/clean/editor/ui/dialogs/content/EdReplace.js