Bug 392058. Fire accessible state change events when ARIA pressed state changes. r=simon.bates, a=dsicore

This commit is contained in:
aaronleventhal%moonset.net 2007-08-14 16:15:12 +00:00
Родитель 9cd3665d92
Коммит 27ecab6f00
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -1086,6 +1086,15 @@ nsDocAccessible::ARIAAttributeChanged(nsIContent* aContent, nsIAtom* aAttribute)
return;
}
if (aAttribute == nsAccessibilityAtoms::pressed) {
nsCOMPtr<nsIAccessibleStateChangeEvent> event =
new nsAccStateChangeEvent(targetNode,
nsIAccessibleStates::STATE_PRESSED,
PR_FALSE);
FireDelayedAccessibleEvent(event);
return;
}
if (aAttribute == nsAccessibilityAtoms::expanded) {
nsCOMPtr<nsIAccessibleStateChangeEvent> event =
new nsAccStateChangeEvent(targetNode,