git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4342 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-06-02 19:55:23 +00:00
parent eccba52f9b
commit f725acae39
2 changed files with 8 additions and 1 deletions

View file

@ -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++) {