How to handle right click in AppKit

Issue #322

lazy var gr = NSClickGestureRecognizer(target: self, action: #selector(onPress(_:)))

gr.buttonMask = 0x2
gr.numberOfClicksRequired = 1
view.addGestureRecognizer(gr)
Written by

I’m open source contributor, writer, speaker and product maker.

Start the conversation