Checks the button's key equivalent against the specified event and, if they match, simulates the button being clicked.
- macOS 10.0+
The event containing the key equivalent.
YES if the key equivalent in
an matches the button's key equivalent;
NO if it does not. This method also returns
NO if the button is blocked by a modal panel or the button is disabled.
If the character in
an matches the button’s key equivalent, and the modifier flags in
an match the key-equivalent modifier mask,
perform simulates the user clicking the button and returning
perform does nothing and returns