Bug 92005 -- Acrobat Copy button doesn't work on windows, r=peterl, sr=beard

This commit is contained in:
av%netscape.com 2002-08-23 12:01:22 +00:00
Родитель 57b3f1fd93
Коммит 9ffe1be644
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -501,11 +501,7 @@ HandlePluginEvent(nsGUIEvent *aEvent)
if (aEvent == nsnull || aEvent->widget == nsnull) //null pointer check
return nsEventStatus_eIgnore;
#ifdef XP_WIN
// on Windows, the mouse click is converted to an NS_PLUGIN_ACTIVATE
if( aEvent->message == NS_PLUGIN_ACTIVATE)
(nsIWidget*)(aEvent->widget)->SetFocus(); // send focus to child window
#else
#ifndef XP_WIN
// the Mac, and presumably others, send NS_MOUSE_ACTIVATE
if (aEvent->message == NS_MOUSE_ACTIVATE) {
(nsIWidget*)(aEvent->widget)->SetFocus(); // send focus to child window