mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:50:38 +00:00
Menu handling fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5700 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
66353787d4
commit
fb77d815b2
4 changed files with 110 additions and 42 deletions
|
@ -204,14 +204,16 @@
|
|||
|
||||
- (void) rightMouseDown: (NSEvent *)theEvent
|
||||
{
|
||||
if (next_responder)
|
||||
return [next_responder rightMouseDown: theEvent];
|
||||
if (next_responder != nil)
|
||||
{
|
||||
return [next_responder rightMouseDown: theEvent];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSMenu *menu = [NSApp mainMenu];
|
||||
|
||||
if (menu)
|
||||
[menu _rightMouseDisplay];
|
||||
if (menu != nil)
|
||||
[menu _rightMouseDisplay: theEvent];
|
||||
else
|
||||
return [self noResponderFor: @selector(rightMouseDown:)];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue