rem: window.focus(); 
add: top.document.commandDispatcher.focusedWindow.focus(); 
context: function EditorOnFocus(){  // Current window already has the InsertCharWindow  if ("InsertCharWindow" in window && window.InsertCharWindow) return;  // Find window with an InsertCharsWindow and switch association to this one  var windowWithDialog = FindEditorWithInsertCharDialog();  if (windowWithDialog)  {    // Switch the dialog to current window    // this sets focus to dialog, so bring focus back to editor window    if (SwitchInsertCharToThisWindow(windowWithDialog))      window.focus();  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/da612cac58dcb7e9f3602cece16f98855cac775c/editor.js/buggy/editor/ui/composer/content/editor.js