Revert "Left shift key equivalent modifier mask in xib unarchiver (#259)" (#260)

This reverts commit d1562a37cd.
This commit is contained in:
williameveretteggplant 2024-04-23 12:09:39 -06:00 committed by GitHub
parent d1562a37cd
commit 140124ed35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1395,7 +1395,7 @@ didStartElement: (NSString*)elementName
// Seems that Apple decided to omit this attribute IF certain default keys alone
// are applied. If this key is present WITH NO setting then the following is
// used for the modifier mask...
object = [NSNumber numberWithUnsignedInt: (NSCommandKeyMask << 8)];
object = [NSNumber numberWithUnsignedInt: NSCommandKeyMask];
}
}
else
@ -1437,8 +1437,6 @@ didStartElement: (NSString*)elementName
mask |= NSFunctionKeyMask;
}
//This mask is left shifted 8 bits when encoded. When this is used to initialize the element, the mask will be shifted back to the right by 8 bits.
mask = (mask << 8);
object = [NSNumber numberWithUnsignedInt: mask];
}