r=hyatt, a=brendan
OS/2 bring up - change menu code so clicks are NOT passed to the default window proc if they are handled.
This fix has been tested on Linux, Windows, OS/2 - does not affect Mac.
This commit is contained in:
mkaply%us.ibm.com 2000-06-20 13:49:24 +00:00
Родитель 508fe4c346
Коммит 67b5372c2b
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -283,7 +283,7 @@ nsMenuFrame::HandleEvent(nsIPresContext* aPresContext,
nsEventStatus* aEventStatus)
{
NS_ENSURE_ARG_POINTER(aEventStatus);
*aEventStatus = nsEventStatus_eConsumeDoDefault;
*aEventStatus = nsEventStatus_eConsumeNoDefault;
if (aEvent->message == NS_KEY_PRESS && !IsDisabled()) {
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
@ -398,6 +398,8 @@ nsMenuFrame::HandleEvent(nsIPresContext* aPresContext,
mOpenTimer->Init(this, menuDelay, NS_PRIORITY_HIGHEST);
}
}
else
*aEventStatus = nsEventStatus_eConsumeDoDefault;
return NS_OK;
}