mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
38c0e9037b
commit
cc6e0ba4cc
1 changed files with 4 additions and 1 deletions
|
@ -728,7 +728,10 @@ static NSNotificationCenter *nc;
|
|||
if ([[item keyEquivalent] isEqualToString:
|
||||
[theEvent charactersIgnoringModifiers]])
|
||||
{
|
||||
[_view performActionWithHighlightingForItemAtIndex: i];
|
||||
if ([item isEnabled])
|
||||
{
|
||||
[_view performActionWithHighlightingForItemAtIndex: i];
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue