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) {    gDownloadManager.removeDownload(aEvent.target.id);    gDownloadViewController.onCommandUpdate();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b74432a7279cd533d55a3700423b45c533746348/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js