зеркало из https://github.com/mozilla/pjs.git
Bug 245365. Screen readers not speaking selected tree item when tree gets focus. r=pkw, rs=darin
This commit is contained in:
Родитель
686fdda110
Коммит
d37d449fdf
|
@ -378,10 +378,14 @@ NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
|
|||
#ifdef MOZ_XUL
|
||||
// tree event
|
||||
if (treeItemAccessible && (eventType.EqualsIgnoreCase("DOMMenuItemActive") ||
|
||||
eventType.EqualsIgnoreCase("select"))) {
|
||||
eventType.EqualsIgnoreCase("select") ||
|
||||
eventType.EqualsIgnoreCase("focus"))) {
|
||||
FireAccessibleFocusEvent(accessible, targetNode); // Tree has focus
|
||||
privAcc = do_QueryInterface(treeItemAccessible);
|
||||
privAcc->FireToolkitEvent(nsIAccessibleEvent::EVENT_FOCUS,
|
||||
treeItemAccessible, nsnull);
|
||||
privAcc->FireToolkitEvent(nsIAccessibleEvent::EVENT_SELECTION,
|
||||
treeItemAccessible, nsnull);
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче