From e1c5f680d1cb78daeb2c6d07a186bb3dc19364a8 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 11 Jul 2006 14:21:38 +0000 Subject: [PATCH] fix 22853, first To: address field not focused in new mail when last mail sent with first address field in focus, patch by w.woods@optusnet.com.au, r/sr=bienvenu git-svn-id: svn://10.0.0.236/trunk@201874 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mail/components/compose/content/MsgComposeCommands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/mail/components/compose/content/MsgComposeCommands.js b/mozilla/mail/components/compose/content/MsgComposeCommands.js index 710b32fff24..cc0d39f7a5b 100644 --- a/mozilla/mail/components/compose/content/MsgComposeCommands.js +++ b/mozilla/mail/components/compose/content/MsgComposeCommands.js @@ -231,6 +231,10 @@ var gComposeRecyclingListener = { disableEditableFields(); ReleaseGlobalVariables(); + // Clear the focus + if (top.awInputElement.getAttribute('focused') != '') + top.awInputElement.removeAttribute('focused'); + //Reset Boxes size document.getElementById("headers-box").removeAttribute("height"); document.getElementById("appcontent").removeAttribute("height");