initialize modifier keys for locally declared events; r=blizzard@mozilla.org

This commit is contained in:
brade%netscape.com 2000-01-13 15:56:30 +00:00
Родитель f632faa745
Коммит 9ac005b428
1 изменённых файлов: 12 добавлений и 0 удалений

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

@ -3768,6 +3768,10 @@ nsEnderEventListener::Focus(nsIDOMEvent* aEvent)
event.widget = nsnull;
event.message = NS_FOCUS_CONTENT;
event.flags = NS_EVENT_FLAG_INIT;
event.isShift = false;
event.isControl = false;
event.isAlt = false;
event.isMeta = false;
nsIEventStateManager *manager=nsnull;
result = mContext->GetEventStateManager(&manager);
@ -3820,6 +3824,10 @@ nsEnderEventListener::Blur(nsIDOMEvent* aEvent)
event.widget = nsnull;
event.message = NS_FORM_CHANGE;
event.flags = NS_EVENT_FLAG_INIT;
event.isShift = false;
event.isControl = false;
event.isAlt = false;
event.isMeta = false;
// Have the content handle the event.
mContent->HandleDOMEvent(mContext, &event, nsnull, NS_EVENT_FLAG_INIT, &status);
@ -3837,6 +3845,10 @@ nsEnderEventListener::Blur(nsIDOMEvent* aEvent)
event.widget = nsnull;
event.message = NS_BLUR_CONTENT;
event.flags = NS_EVENT_FLAG_INIT;
event.isShift = false;
event.isControl = false;
event.isAlt = false;
event.isMeta = false;
gfxFrame->SetShouldSetFocus();