add: if (window.InsertCharWindow) SwitchInsertCharToAnotherEditorOrClose();  
context: function CloseWindow(){  // Close window; check to make sure document is saved  var result = CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing"));  if (result == true) // If they saved the document, or it is unchanged, exit  {    window.editorShell.CloseWindowWithoutSaving();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5eafc0feeb5eafc3a8dec8ecd2e935e7be206733/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js