зеркало из https://github.com/mozilla/pjs.git
call MenuKey if only the cmdKey is pressed (don't call it if the shift key or other modifier keys are pressed). r=saari
This commit is contained in:
Родитель
7fd50f4f09
Коммит
2fe0f424a3
|
@ -643,7 +643,8 @@ void nsMacMessagePump::DoKey(EventRecord &anEvent)
|
|||
//else
|
||||
{
|
||||
PRBool handled = DispatchOSEventToRaptor(anEvent, ::FrontWindow());
|
||||
if((!handled) && (anEvent.what == keyDown) && ((anEvent.modifiers & cmdKey) != 0) )
|
||||
/* we want to call this if cmdKey is pressed and no other modifier keys are pressed */
|
||||
if((!handled) && (anEvent.what == keyDown) && (anEvent.modifiers == cmdKey) )
|
||||
{
|
||||
// do a menu key command
|
||||
long menuResult = ::MenuKey(theChar);
|
||||
|
|
Загрузка…
Ссылка в новой задаче