зеркало из https://github.com/mozilla/pjs.git
fixing bug #8450, Mac only change
This commit is contained in:
Родитель
b635ab5465
Коммит
d84f744998
|
@ -686,7 +686,17 @@ void nsMacMessagePump::DoKey(EventRecord &anEvent)
|
||||||
//}
|
//}
|
||||||
//else
|
//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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче