Skip to content

Commit

Permalink
* Source/NSMenuItemCell.m (-_keyEquivalentString): Fix the 'and' chec…
Browse files Browse the repository at this point in the history
…k so that shiftKeyString can display (#190)
  • Loading branch information
eukara authored Aug 26, 2023
1 parent 570f2b4 commit d99c96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/NSMenuItemCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ - (NSString*) _keyEquivalentString
else
{
// shift mask and not an upper case string?
shift = (m & NSShiftKeyMask) & ![key isEqualToString: ucKey];
shift = (m & NSShiftKeyMask) && ![key isEqualToString: ucKey];
key = [NSString stringWithFormat:@"%@%@%@%@%@",
(m & NSControlKeyMask) ? controlKeyString : @"",
(m & NSAlternateKeyMask) ? alternateKeyString : @"",
Expand Down

0 comments on commit d99c96e

Please sign in to comment.