fix for 46938, make sure full content area plugins can still get key events once you've clicked on them

This commit is contained in:
saari@netscape.com
2000-08-24 05:04:06 +00:00
parent ae0d16c778
commit 213b5792ca
2 changed files with 6 additions and 0 deletions

View File

@@ -416,6 +416,9 @@ PluginViewerImpl::SetDOMDocument(nsIDOMDocument *aDocument)
static nsEventStatus PR_CALLBACK
HandlePluginEvent(nsGUIEvent *aEvent)
{
if( (*aEvent).message == NS_PLUGIN_ACTIVATE) {
(nsIWidget*)((*aEvent).widget)->SetFocus();
}
return nsEventStatus_eIgnore;
}
nsresult