bug 431474 - Document Accessibles not getting state_focused when they have focus

patch by aaronleventhal@moonset.net (Aaron Leventhal)
r=surkov
r=me
a1.9=beltzner
This commit is contained in:
marco.zehe%googlemail.com 2008-05-04 17:42:19 +00:00
Родитель 37f3e34b2a
Коммит b33de73d9d
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -257,6 +257,9 @@ nsDocAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
// which it should be if it is scrollable. A XUL document could be focusable. // which it should be if it is scrollable. A XUL document could be focusable.
// See bug 376803. // See bug 376803.
*aState |= nsIAccessibleStates::STATE_FOCUSABLE; *aState |= nsIAccessibleStates::STATE_FOCUSABLE;
if (gLastFocusedNode == mDOMNode) {
*aState |= nsIAccessibleStates::STATE_FOCUSED;
}
} }
if (!mIsContentLoaded) { if (!mIsContentLoaded) {