Implemented [rightMouseDown:] with code from NSResponder.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-08-21 23:23:19 +00:00
parent eae31362e1
commit 7c88e9d626

View file

@ -1741,6 +1741,15 @@ IF_NO_GC(NSAssert([event retainCount] > 0, NSInternalInconsistencyException));
}
}
- (void) rightMouseDown: (NSEvent*)theEvent
{
// On right mouse down display the main menu transient
if (_main_menu != nil)
[_main_menu _rightMouseDisplay: theEvent];
else
[super rightMouseDown: theEvent];
}
- (void) setAppleMenu: (NSMenu*)aMenu
{
//TODO: Unclear, what this should do.