зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5b78b05c87
Коммит
a99b741621
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче