Bug 703198 - JAWS doesn't announce combobox navigation in collapsed combobox, perf version, r=marcoz

This commit is contained in:
Alexander Surkov 2011-11-23 20:50:33 +08:00
Родитель b51990fe27
Коммит 4a7d6d233f
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -1589,11 +1589,10 @@ nsAccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
NotifyWinEvent(winEvent, hWnd, OBJID_CLIENT, childID);
// JAWS announces collapsed combobox navigation based on focus events.
if (nsWinUtils::IsWindowEmulationFor(kJAWSModuleHandle)) {
if (eventType == nsIAccessibleEvent::EVENT_SELECTION &&
accessible->Role() == nsIAccessibleRole::ROLE_COMBOBOX_OPTION) {
NotifyWinEvent(EVENT_OBJECT_FOCUS, hWnd, OBJID_CLIENT, childID);
}
if (eventType == nsIAccessibleEvent::EVENT_SELECTION &&
accessible->Role() == nsIAccessibleRole::ROLE_COMBOBOX_OPTION &&
nsWinUtils::IsWindowEmulationFor(kJAWSModuleHandle)) {
NotifyWinEvent(EVENT_OBJECT_FOCUS, hWnd, OBJID_CLIENT, childID);
}
return NS_OK;
}