Fixed bug allowing buttons disabled but with a key equivalent to get first

responder status


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8395 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-12-21 17:23:21 +00:00
parent 3d77093190
commit 89fce18382

View file

@ -300,7 +300,7 @@ id _nsbuttonCellClass = nil;
//
- (BOOL) acceptsFirstResponder
{
return [_cell acceptsFirstResponder] || ([self keyEquivalent] != nil);
return [self isEnabled];
}
- (void) keyDown: (NSEvent*)theEvent