fix for bug #36155 -default identity for compose message must be the selected identity in messenger windows; r=ducarroz

This commit is contained in:
varada%netscape.com 2000-07-05 22:06:34 +00:00
parent e1b3fb24d2
commit fcc484937b
2 changed files with 9 additions and 2 deletions

View File

@ -17,6 +17,13 @@
function goOpenNewMessage()
{
try {
MsgNewMessage();
return;
}
catch(ex) {
;
}
var msgComposeService = Components.classes["component://netscape/messengercompose"].getService();
msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);
msgComposeService.OpenComposeWindow(null, null,
@ -38,4 +45,4 @@
<key id="key_newMessage" xulkey="true" key="&newMessageCmd.key;" observes="cmd_newMessage"/>
</keyset>
</overlay>
</overlay>

View File

@ -111,7 +111,7 @@ function MsgNewMessage(event)
var loadedFolder = GetFirstSelectedMsgFolder();
var messageArray = GetSelectedMessages();
if (event.shiftKey)
if (event && event.shiftKey)
ComposeMessage(msgComposeType.New, msgComposeFormat.OppositeOfDefault, loadedFolder, messageArray);
else
ComposeMessage(msgComposeType.New, msgComposeFormat.Default, loadedFolder, messageArray);