Bug 392314, alt key should close menu, add some key closing menus tests, r+sr=bz,a=dbaron

This commit is contained in:
2007-08-23 14:21:27 -07:00
parent d1f543fea4
commit 373d75d73f
3 changed files with 63 additions and 5 deletions

View File

@@ -255,6 +255,8 @@ nsMenuBarFrame::FindMenuWithShortcut(nsIDOMKeyEvent* aKeyEvent)
{
PRUint32 charCode;
aKeyEvent->GetCharCode(&charCode);
if (!charCode) // no character was pressed so just return
return nsnull;
// Enumerate over our list of frames.
nsIFrame* immediateParent = nsnull;