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