add:   gDownloadsView.clearSelection(); if (selectedIndex >= gDownloadsView.getRowCount()) gDownloadsView.selectedIndex = selectedIndex - 1; else gDownloadsView.selectedIndex = selectedIndex;  gDownloadsView.focus();  
context: function onDownloadRemove(aEvent){  if (aEvent.target.removable) {    var selectedIndex = gDownloadsView.selectedIndex;    gDownloadManager.removeDownload(aEvent.target.id);    gDownloadViewController.onCommandUpdate();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/61ae9e722d7e64483a483538da270520a97479f6/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js