I am using this code below for my NSButton, for having the blue style Button. But this code make my Button react to return key on keyboard, which it is not my wish, my goal is having this style without having to set a keyEquivalent for my Button, how can I customize my NSButton for this goal?
let myButton: NSButton = NSButton()
myButton.bezelStyle = .rounded
myButton.keyEquivalent = "\r"
The following source code will create a blue NSButton using an inline image which is a blue colored rounded rect near the same size as the button. The button title color was changed to white to make it more visible.