Instance Method

performKeyEquivalent(with:)

Performs the action for the menu item that corresponds to the given key equivalent.

Declaration

func performKeyEquivalent(with event: NSEvent) -> Bool

Parameters

theEvent

An NSEvent object that represents a key-equivalent event.

Return Value

true if theEvent is a key equivalent that the menu should handle, false if it is a key equivalent that the menu should not handle.

See Also