rem: var selectedFilters = gFilterTree.selectedItems;  for (var i=0;i<selectedFilters.length;i++) toggleFilter(selectedFilters[i].getAttribute("id")); 
add: var rangeCount = gFilterTree.view.selection.getRangeCount(); for (var i = 0; i < rangeCount; ++i) { var start = {}, end = {}; gFilterTree.view.selection.getRangeAt(i, start, end); for (var k = start.value; k <= end.value; ++k) { var res = gFilterTree.builderView.getResourceAtIndex(k); toggleFilter(res.Value); } } 
context: function onFilterTreeKeyPress(event){  // for now, only do something on space key  if (event.keyCode != 0)    return;  var selectedFilters = gFilterTree.selectedItems;  for (var i=0;i<selectedFilters.length;i++)    toggleFilter(selectedFilters[i].getAttribute("id"));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js