зеркало из https://github.com/mozilla/gecko-dev.git
bug 139877:right-click context menu access keys require "enter" to perform action
r=pete.zha@sun.com sr=jag Check in Kyle Yuan(kyle.yuan@sun.com)'s fix
This commit is contained in:
Родитель
3d02613dbb
Коммит
738cd4f226
|
@ -1507,9 +1507,7 @@ nsMenuPopupFrame::FindMenuWithShortcut(nsIDOMKeyEvent* aKeyEvent, PRBool& doActi
|
|||
if (parentContent) {
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
parentContent->GetTag(*getter_AddRefs(tag));
|
||||
// toolbarbutton is for the "Bookmarks" button on the toolbar
|
||||
// popupset is for the right-click popup menu
|
||||
if (tag == nsXULAtoms::menu || tag == nsXULAtoms::toolbarbutton || tag == nsXULAtoms::popupset)
|
||||
if (tag != nsXULAtoms::menulist)
|
||||
isMenu = PR_TRUE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче