mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:20:38 +00:00
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:
parent
3d77093190
commit
89fce18382
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ id _nsbuttonCellClass = nil;
|
|||
//
|
||||
- (BOOL) acceptsFirstResponder
|
||||
{
|
||||
return [_cell acceptsFirstResponder] || ([self keyEquivalent] != nil);
|
||||
return [self isEnabled];
|
||||
}
|
||||
|
||||
- (void) keyDown: (NSEvent*)theEvent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue