add:       gRightMouseButtonDown = false; 
context: function RestoreSelectionWithoutContentLoad(tree){    var treeBoxObj = tree.treeBoxObject;    var treeSelection = treeBoxObj.selection;    // make sure that currentIndex is valid so that we don't try to restore    // a selection of an invalid row.    if((!treeSelection.isSelected(treeSelection.currentIndex)) &&       (treeSelection.currentIndex >= 0))    {        treeSelection.selectEventsSuppressed = true;        treeSelection.select(treeSelection.currentIndex);        treeSelection.selectEventsSuppressed = false;        // Keep track of which row in the thread pane is currently selected.        // This is currently only needed when deleting messages.  See        // declaration of var in msgMail3PaneWindow.js.        if(tree.id == "threadTree")          gThreadPaneCurrentSelectedIndex = treeSelection.currentIndex;    }    else if(!gThreadPaneDeleteOrMoveOccurred && (treeSelection.currentIndex < 0))        // Clear the selection in the case of when a folder has just been        // loaded where the message pane does not have a message loaded yet.        // When right-clicking a message in this case and dismissing the        // popup menu (by either executing a menu command or clicking        // somewhere else),  the selection needs to be cleared.        // However, if the 'Delete Message' or 'Move To' menu item has been        // selected, DO NOT clear the selection, else it will prevent the        // tree view from refreshing.        treeSelection.clearSelection();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/a93db307968c7c3a39ddeea1eae888678829ac8c/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js