overlayView(_:shouldHandleKeyDownEvent:)
Returns a Boolean value that indicates whether the overlay view consumes the given key-down event.
Declaration
@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, shouldHandleKeyDownEvent event: NSEvent) -> BoolParameters
- overlayView:
The overlay view that receives the key-down event.
- event:
The key-down event that occurs.
Return Value
true if the overlay view handles the event; otherwise, false.
Discussion
The default return value is true. Implement this callback if you don’t want the overlay view to consume the given event.