Contents

performKeyEquivalent(with:)

Handle a key equivalent.

Declaration

func performKeyEquivalent(with event: NSEvent) -> Bool

Parameters

  • event:

    An event object that represents the key equivalent pressed.

Discussion

Override to handle key equivalents. If the character code or codes in event match the receiver’s key equivalent, the receiver should respond to the event and return true. The default implementation does nothing and returns false.

See Also

Related Documentation

Responding to Key Events