Bug #259115 --> improve accessibility for the quick search box.

F4/Alt up / Alt down support
sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2005-08-04 23:03:14 +00:00
Родитель 133c017695
Коммит b2b6913ae8
1 изменённых файлов: 23 добавлений и 1 удалений

Просмотреть файл

@ -624,7 +624,29 @@ NS_IMETHODIMP nsMsgGroupView::GetCellText(PRInt32 aRow, nsITreeColumn* aCol, nsA
default:
NS_ASSERTION(PR_FALSE, "we don't sort by group for this type");
break;
}
}
if (groupThread)
{
// Get number of messages in group
nsAutoString formattedCountMsg;
PRUint32 numMsg = groupThread->NumRealChildren();
formattedCountMsg.AppendInt(numMsg);
// Get number of unread messages
nsAutoString formattedCountUnrMsg;
PRUint32 numUnrMsg = 0;
groupThread->GetNumUnreadChildren(&numUnrMsg);
formattedCountUnrMsg.AppendInt(numUnrMsg);
// Add text to header
aValue.Append(NS_LITERAL_STRING(" ("));
aValue.Append(formattedCountUnrMsg);
aValue.Append(NS_LITERAL_STRING("/"));
aValue.Append(formattedCountMsg);
aValue.Append(NS_LITERAL_STRING(")"));
}
}
else if (colID[0] == 't')
{