Bug 166004. Need to fire accessible focus event on new menuitem when using left arrow to leave submenu and go back into parent menu. r=kyle, sr=bryner

This commit is contained in:
aaronleventhal%moonset.net 2004-09-21 20:45:12 +00:00
Родитель 5b78b05c87
Коммит a99b741621
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1503,6 +1503,8 @@ nsMenuPopupFrame::Escape(PRBool& aHandledFlag)
if (!aHandledFlag) {
// We should close up.
mCurrentMenu->OpenMenu(PR_FALSE);
// SelectMenu() so DOMMenuItemActive is fired for accessibility
mCurrentMenu->SelectMenu(PR_TRUE);
aHandledFlag = PR_TRUE;
}
}
@ -1819,6 +1821,8 @@ nsMenuPopupFrame::KeyboardNavigation(PRUint32 aKeyCode, PRBool& aHandledFlag)
if (theDirection == eNavigationDirection_Start) {
// Close it up.
mCurrentMenu->OpenMenu(PR_FALSE);
// SelectMenu() so DOMMenuItemActive is fired for accessibility
mCurrentMenu->SelectMenu(PR_TRUE);
aHandledFlag = PR_TRUE;
}
}