From ba00cca6d513745b11c2d2efa8d2ee792ee2197a Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Fri, 24 May 2002 19:07:22 +0000 Subject: [PATCH] Fix for bug 141648. We need to set the focus outside the eidtable field when recycling the compose window to avoid having focus problem on Mac. R=varada, SR=bienvenu git-svn-id: svn://10.0.0.236/trunk@122129 18797224-902f-48f8-a5cc-f745e15eee43 --- .../compose/resources/content/MsgComposeCommands.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js b/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js index 0edc04f324f..ef3413c302d 100644 --- a/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js +++ b/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js @@ -177,6 +177,12 @@ function enableEditableFields() var gComposeRecyclingListener = { onClose: function() { + //Reset focus to avoid undesirable visual effect when reopening the winodw + var identityElement = document.getElementById("msgIdentity"); + if (identityElement) + identityElement.focus(); + + //Reset recipients and attachments awResetAllRows(); RemoveAllAttachments();