currentEvent
The last event object that the app retrieved from the event queue.
Declaration
var currentEvent: NSEvent? { get }Discussion
The shared app object receives events and forwards them to the affected NSWindow objects, which then distribute them to the objects in its view hierarchy. Use this property to get the event that was last handled by the app.