Bug 139877. Right click context menu accesskeys require 'Enter' to perform action (regression). Fix by Kyle Yuan. r=aaronl, sr=jst

This commit is contained in:
aaronl%netscape.com 2002-05-09 20:12:21 +00:00
Родитель 5235519ece
Коммит e345712ba1
2 изменённых файлов: 3 добавлений и 1 удалений

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

@ -316,3 +316,4 @@ XUL_ATOM(defaultz, "default")
XUL_ATOM(screenX, "screenX")
XUL_ATOM(screenY, "screenY")
XUL_ATOM(hidechrome, "hidechrome")
XUL_ATOM(popupset, "popupset")

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

@ -1508,7 +1508,8 @@ nsMenuPopupFrame::FindMenuWithShortcut(nsIDOMKeyEvent* aKeyEvent, PRBool& doActi
nsCOMPtr<nsIAtom> tag;
parentContent->GetTag(*getter_AddRefs(tag));
// toolbarbutton is for the "Bookmarks" button on the toolbar
if (tag == nsXULAtoms::menu || tag == nsXULAtoms::toolbarbutton)
// popupset is for the right-click popup menu
if (tag == nsXULAtoms::menu || tag == nsXULAtoms::toolbarbutton || tag == nsXULAtoms::popupset)
isMenu = PR_TRUE;
}