From 434964ec967e355b06fa1e7237b2f7f310978e46 Mon Sep 17 00:00:00 2001 From: Christoffer Winterkvist Date: Thu, 4 Jan 2024 20:23:26 +0100 Subject: [PATCH] Fix bug with returning result instead of newEvent.result --- Sources/MachPort/MachPortEventController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MachPort/MachPortEventController.swift b/Sources/MachPort/MachPortEventController.swift index 07bc86c..369d57d 100644 --- a/Sources/MachPort/MachPortEventController.swift +++ b/Sources/MachPort/MachPortEventController.swift @@ -132,7 +132,7 @@ public final class MachPortEventController: MachPortEventPublisher { } else { event = newEvent } - return result + return newEvent.result } private final func determineModifierKeysLocation(_ cgEvent: CGEvent) -> Bool {