From 5a8117ac7f0e5ab3898cf5a60699adcaa74733ea Mon Sep 17 00:00:00 2001 From: Toxblh Date: Tue, 7 May 2019 10:35:25 +0100 Subject: [PATCH] #154 .cghidEventTap -> .cgAnnotatedSessionEventTap --- MTMR/Info.plist | 4 ++-- MTMR/KeyPress.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MTMR/Info.plist b/MTMR/Info.plist index 1180dfc..06505cc 100644 --- a/MTMR/Info.plist +++ b/MTMR/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.20.1 + 0.20.2 CFBundleVersion - 185 + 197 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion diff --git a/MTMR/KeyPress.swift b/MTMR/KeyPress.swift index 1f68768..a4afe2b 100644 --- a/MTMR/KeyPress.swift +++ b/MTMR/KeyPress.swift @@ -23,7 +23,7 @@ extension KeyPress { let keyDown = CGEvent(keyboardEventSource: src, virtualKey: keyCode, keyDown: true) let keyUp = CGEvent(keyboardEventSource: src, virtualKey: keyCode, keyDown: false) - let loc: CGEventTapLocation = .cghidEventTap + let loc: CGEventTapLocation = .cgAnnotatedSessionEventTap keyDown?.post(tap: loc) keyUp?.post(tap: loc) }