mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 468497: Inform the accessibility FocusManager when a XUL tree's view changes. r=MarcoZ
Without this, accessibility clients don't get notified about the newly focused item. For example, this meant that nothing was reported by screen readers when switching tabs in Thunderbird with control+tab. MozReview-Commit-ID: F7vqvLXzeJR --HG-- extra : rebase_source : debd649415cdc7417660c5846a923a5cc8edad79
This commit is contained in:
parent
33c82e5cba
commit
14367430eb
@ -660,6 +660,10 @@ XULTreeAccessible::TreeViewChanged(nsITreeView* aView)
|
||||
UnbindCacheEntriesFromDocument(mAccessibleCache);
|
||||
|
||||
mTreeView = aView;
|
||||
Accessible* item = CurrentItem();
|
||||
if (item) {
|
||||
FocusMgr()->ActiveItemChanged(item, true);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user