On CMD keypress, this func:
override func keyDown(with event: NSEvent) {
super.keyDown(with: event)
let flags = event.modifierFlags
print(flags)
print(NSEvent.ModifierFlags.command.rawValue)
}
returns:
NSEventModifierFlags(rawValue: 1048848)
1048576
Why are the raw values not equivalent? flags == .command
returns false on a command key press because of the inequivalent raw values.
Xcode 12.5, OSX 11.2.2