don't send two right mouse up events into Gecko for each real right mouse up event. fixes context menus in Google spreadsheets. b=418689 r=smichaud sr=vlad

This commit is contained in:
joshmoz%gmail.com 2008-04-08 19:56:13 +00:00
Родитель a19a0b568d
Коммит f3263acf2e
1 изменённых файлов: 1 добавлений и 6 удалений

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

@ -3146,12 +3146,7 @@ static nsEventStatus SendGeckoMouseEnterOrExitEvent(PRBool isTrusted,
geckoEvent.nativeMsg = &macEvent; geckoEvent.nativeMsg = &macEvent;
nsAutoRetainCocoaObject kungFuDeathGrip(self); nsAutoRetainCocoaObject kungFuDeathGrip(self);
PRBool handled = mGeckoChild->DispatchMouseEvent(geckoEvent); mGeckoChild->DispatchMouseEvent(geckoEvent);
if (!mGeckoChild)
return;
if (!handled)
[super rightMouseUp:theEvent];
NS_OBJC_END_TRY_ABORT_BLOCK; NS_OBJC_END_TRY_ABORT_BLOCK;
} }