From 89fce183828911620f6f4ffb87063daf092c8f53 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Thu, 21 Dec 2000 17:23:21 +0000 Subject: [PATCH] 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 --- Source/NSButton.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSButton.m b/Source/NSButton.m index 1de1359a8..0d98fda23 100644 --- a/Source/NSButton.m +++ b/Source/NSButton.m @@ -300,7 +300,7 @@ id _nsbuttonCellClass = nil; // - (BOOL) acceptsFirstResponder { - return [_cell acceptsFirstResponder] || ([self keyEquivalent] != nil); + return [self isEnabled]; } - (void) keyDown: (NSEvent*)theEvent