From 794ce421fe862db35b069a63f160fac03ed27fed Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Tue, 21 Aug 2001 23:23:19 +0000 Subject: [PATCH] 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 --- Source/NSApplication.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/NSApplication.m b/Source/NSApplication.m index b3f57679e..ce93c7c33 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -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.