fix: app was no longer absorbing its shortcut key events properly

Regression was introduced by a4a0a9be2e
This commit is contained in:
Louis Pontoise committed 2019-10-28 18:26:39 +09:00
1 parent 7f12f4146e
commit 4976267a82
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ func listenToGlobalKeyboardEvents(_ delegate: Application) {
eventTap = CGEvent.tapCreate(
tap: .cgSessionEventTap,
place: .headInsertEventTap,
options: .listenOnly,
options: .defaultTap,
eventsOfInterest: eventMask,
callback: { (_, _, event, delegate_) -> Unmanaged<CGEvent>? in
let d = Unmanaged<Application>.fromOpaque(delegate_!).takeUnretainedValue()