Bug 94980 - Keyboard navigation in context menu causes highlight upon reopening

r=pink sr=blake
This commit is contained in:
dean_tessman%hotmail.com 2001-12-12 05:11:16 +00:00
Родитель 3b9fcc8963
Коммит e3f452219e
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -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;
} }