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:
brade%netscape.com 2000-01-23 19:02:40 +00:00
Родитель 7fd50f4f09
Коммит 2fe0f424a3
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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);