mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4342 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eccba52f9b
commit
f725acae39
2 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,8 @@ Wed Jun 2 20:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|||
* Source/NSApplication.m: Send performKeyEquivalent messages.
|
||||
* Source/NSWindow.m: Send performKeyEquivalent messages.
|
||||
* Source/NSView.m: Send performKeyEquivalent messages.
|
||||
* Source/NSMenu.m: Have the menu matrix forward performKeyEquivalent
|
||||
messages to the menu.
|
||||
|
||||
Wed Jun 2 19:22:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -162,6 +162,11 @@ static NSFont* menuFont = nil;
|
|||
return menuCell;
|
||||
}
|
||||
|
||||
- (BOOL) performKeyEquivalent: (NSEvent*)theEvent
|
||||
{
|
||||
return [menu performKeyEquivalent: theEvent];
|
||||
}
|
||||
|
||||
- (void) removeItem: (id <NSMenuItem>)anItem
|
||||
{
|
||||
int row = [cells indexOfObject: anItem];
|
||||
|
@ -576,7 +581,7 @@ static Class menuCellClass = nil;
|
|||
int i, count = [cells count];
|
||||
NSEventType type = [theEvent type];
|
||||
|
||||
if (type != NSKeyDown || type != NSKeyUp)
|
||||
if (type != NSKeyDown && type != NSKeyUp)
|
||||
return NO;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
|
|
Loading…
Reference in a new issue