Fix for bug #16688, but needs more investigation/work

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22995 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-05-29 08:47:32 +00:00
parent d585d1e2fb
commit c84f195bd8
5 changed files with 23 additions and 4 deletions

View file

@ -500,10 +500,15 @@ static id buttonCellClass = nil;
[NSControl-performClick:]
[NSEvent-charactersIgnoringModifiers] [NSEvent-modifierFlags]</p>
Does nothing and returns NO if the receiver is disabled or if it is
blocked by a modal window being run.
*/
- (BOOL) performKeyEquivalent: (NSEvent *)anEvent
{
if ([self isEnabled])
NSWindow *w = [self window];
if ([self isEnabled] && ([w worksWhenModal] || [NSApp modalWindow] == w))
{
NSString *key = [self keyEquivalent];