add: contentWindow.focus(); 
context: function CheckSpelling(){  var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (spellChecker)  {    dump("Check Spelling starting...\n");    // Start the spell checker module. Return is first misspelled word    firstMisspelledWord = spellChecker.StartSpellChecking();    dump(firstMisspelledWord+"\n");    if( firstMisspelledWord == "")    {      dump("THERE IS NO MISSPELLED WORD!\n");      // TODO: PUT UP A MESSAGE BOX TO TELL THE USER      window.editorShell.CloseSpellChecking();    } else {      dump("We found a MISSPELLED WORD\n");      window.openDialog("chrome://editordlgs/content/EdSpellCheck.xul", "SpellDlg", "chrome", "", firstMisspelledWord);    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e5c849294a33cba8efe64c52f2f0aa73eba0a297/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js