Bug 392314, alt key should close menu, add some key closing menus tests, r+sr=bz,a=dbaron
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user