When performing key equivalents, only highlight a menu item if it's enabled.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15660 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-01-21 01:18:24 +00:00
parent 38c0e9037b
commit cc6e0ba4cc

View file

@ -728,7 +728,10 @@ static NSNotificationCenter *nc;
if ([[item keyEquivalent] isEqualToString:
[theEvent charactersIgnoringModifiers]])
{
[_view performActionWithHighlightingForItemAtIndex: i];
if ([item isEnabled])
{
[_view performActionWithHighlightingForItemAtIndex: i];
}
return YES;
}
}