rem: if (!event.shiftKey) { Mail.summaryUnhighlightAll(); Mail.summaryHighlight(nextObj, event.shiftKey); 
add: if (event.shiftKey) { if (nextObj.index <= Mail.groupStart.index) { if (keycode == Key.DOWN) { Mail.summaryUnhighlight(Mail.lastSelected, true); } else { Mail.summaryHighlight(nextObj, true); } } if (nextObj.index >= Mail.groupStart.index) { if (keycode == Key.UP) { Mail.summaryUnhighlight(Mail.lastSelected, true); } else { Mail.summaryHighlight(nextObj, true); } }  
context: 	onMailKeyPress : function(event) {		var Key = {			SHIFT	: 16,			ESC		: 27,			UP		: 38,			DOWN	: 40,			DELETE	: 46,			A		: 65,			D		: 68		}				if (!event) {			event = window.event;		}		/*		event.altKey		event.ctrlKey		event.shiftKey 		*/		var keycode = event.keyCode				if ((keycode == Key.UP || keycode == Key.DOWN) &&			 Mail.summaryList.head != null) {			 			var lastObj = Mail.lastSelected;			var nextObj;						if (Mail.lastSelected == null) {				Mail.lastSelected = Mail.summaryList.head;				nextObj = Mail.lastSelected;			}			else if (keycode == Key.DOWN) {				nextObj = lastObj.next;			}			else if (keycode == Key.UP) {				nextObj = lastObj.prev;			}						if (nextObj) {				if (!event.shiftKey) {					Mail.summaryUnhighlightAll();					Mail.summaryHighlight(nextObj, event.shiftKey);				}				else {					if (nextObj.index <= Mail.groupStart.index && keycode == Key.DOWN) {						Mail.summaryUnhighlight(Mail.lastSelected, true);					}					if (nextObj.index >= Mail.groupStart.index && keycode == Key.UP) {						Mail.summaryUnhighlight(Mail.lastSelected, true);					}										Mail.summaryHighlight(nextObj, event.shiftKey);				}				Mail.groupStart = Mail.lastSelected;			}						Mail.scrollToSelected();			return false;		}		else if (keycode == Key.DELETE) {			Mail.deleteSelectedMessages();		}		else if (keycode == Key.ESC) {			Mail.summaryUnhighlightAll();			Mail.getFolderDetails();		}		else if (event.ctrlKey) {			if (keycode == Key.A) {				Mail.summaryHighlightAll();				return false;			}			if (keycode == Key.D) {				Mail.deleteSelectedMessages(true);			}		}	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/a4370ef27dd1653e4f86381aeecd234cc6a56913/mail.js/clean/portal-web/docroot/html/js/portlet/mail.js