Context menu code tweaking. NPOB. Cocoa only.

This commit is contained in:
hyatt%netscape.com 2002-04-12 09:39:59 +00:00
parent c0fb3c144e
commit e230e9cb84
2 changed files with 7 additions and 1 deletions

View File

@ -94,6 +94,8 @@ class nsIEventSink;
isChar:(PRBool*)outIsChar
toGeckoEvent:(nsKeyEvent*)outGeckoEvent;
-(NSMenu*)getContextMenu;
@end

View File

@ -1707,9 +1707,13 @@ nsChildView::GetQuickDrawPort()
mGeckoChild->DispatchMouseEvent(geckoEvent);
// Go up our view chain to fetch the correct menu to return.
return [[self superview] getContextMenu];
return [self getContextMenu];
}
-(NSMenu*)getContextMenu
{
return [[self superview] getContextMenu];
}
//
// initWithGeckoChild:eventSink: