fixing bug #8450, Mac only change
git-svn-id: svn://10.0.0.236/trunk@38573 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1b24c1974d
commit
38ca33a4fb
@ -686,7 +686,17 @@ void nsMacMessagePump::DoKey(EventRecord &anEvent)
|
||||
//}
|
||||
//else
|
||||
{
|
||||
DispatchOSEventToRaptor(anEvent, ::FrontWindow());
|
||||
PRBool handled = DispatchOSEventToRaptor(anEvent, ::FrontWindow());
|
||||
if((!handled) && (anEvent.what == keyDown) && ((anEvent.modifiers & cmdKey) != 0) )
|
||||
{
|
||||
// do a menu key command
|
||||
long menuResult = ::MenuKey(theChar);
|
||||
if (HiWord(menuResult) != 0)
|
||||
{
|
||||
menuResult = ConvertOSMenuResultToPPMenuResult(menuResult);
|
||||
DoMenu(anEvent, menuResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user