rem: if (top.document.commandDispatcher.focusedWindow == msgBodyFrame) return msgBodyFrame; 
add: if (top.document.commandDispatcher.focusedWindow == content) return content; 
context: function WhichElementHasFocus(){  var msgIdentityElement             = GetMsgIdentityElement();  var msgAddressingWidgetTreeElement = GetMsgAddressingWidgetTreeElement();  var msgSubjectElement              = GetMsgSubjectElement();  var msgAttachmentElement           = GetMsgAttachmentElement();  var msgBodyFrame                   = GetMsgBodyFrame();  if (top.document.commandDispatcher.focusedWindow == msgBodyFrame)    return msgBodyFrame;  var currentNode = top.document.commandDispatcher.focusedElement;  while (currentNode)  {    if (currentNode == msgIdentityElement ||        currentNode == msgAddressingWidgetTreeElement ||        currentNode == msgSubjectElement ||        currentNode == msgAttachmentElement)      return currentNode;    currentNode = currentNode.parentNode;  }  return null;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d35f7743b4b564df7b516d5b5ca6d286ed90163a/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js