зеркало из https://github.com/mozilla/pjs.git
Bug 703198 - JAWS doesn't announce combobox navigation in collapsed combobox, perf version, r=marcoz
This commit is contained in:
Родитель
b51990fe27
Коммит
4a7d6d233f
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче