* Source/NSMenuItemCell.m (-_keyEquivalentString): Fix the 'and' check so that shiftKeyString can display (#190)

This commit is contained in:
Marco Cawthorne 2023-08-26 02:32:30 -07:00 committed by GitHub
parent 570f2b4d2a
commit d99c96efcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,7 +283,7 @@ static NSString *commandKeyString = @"#";
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 : @"",