diff --git a/Source/NSMenuItemCell.m b/Source/NSMenuItemCell.m index 2dcf88379c..761f4d6f07 100644 --- a/Source/NSMenuItemCell.m +++ b/Source/NSMenuItemCell.m @@ -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 : @"",