зеркало из https://github.com/mozilla/gecko-dev.git
Bug 94980 - Keyboard navigation in context menu causes highlight upon reopening
r=pink sr=blake
This commit is contained in:
Родитель
3b9fcc8963
Коммит
e3f452219e
|
@ -1642,9 +1642,13 @@ nsMenuPopupFrame::DismissChain()
|
||||||
nsCOMPtr<nsIMenuFrame> menuFrame = do_QueryInterface(frame);
|
nsCOMPtr<nsIMenuFrame> menuFrame = do_QueryInterface(frame);
|
||||||
if (!menuFrame) {
|
if (!menuFrame) {
|
||||||
nsIPopupSetFrame* popupSetFrame = GetPopupSetFrame(mPresContext);
|
nsIPopupSetFrame* popupSetFrame = GetPopupSetFrame(mPresContext);
|
||||||
if (popupSetFrame)
|
if (popupSetFrame) {
|
||||||
|
// make sure the menu is not highlighted
|
||||||
|
if (mCurrentMenu)
|
||||||
|
mCurrentMenu->SelectMenu(PR_FALSE);
|
||||||
// Destroy the popup.
|
// Destroy the popup.
|
||||||
popupSetFrame->DestroyPopup(this);
|
popupSetFrame->DestroyPopup(this);
|
||||||
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче