mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 17:40:48 +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
81f5252301
commit
f05ccae9de
1 changed files with 4 additions and 1 deletions
|
@ -728,7 +728,10 @@ static NSNotificationCenter *nc;
|
||||||
if ([[item keyEquivalent] isEqualToString:
|
if ([[item keyEquivalent] isEqualToString:
|
||||||
[theEvent charactersIgnoringModifiers]])
|
[theEvent charactersIgnoringModifiers]])
|
||||||
{
|
{
|
||||||
[_view performActionWithHighlightingForItemAtIndex: i];
|
if ([item isEnabled])
|
||||||
|
{
|
||||||
|
[_view performActionWithHighlightingForItemAtIndex: i];
|
||||||
|
}
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue