1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

Revert "#154 .cghidEventTap -> .cgAnnotatedSessionEventTap"

This reverts commit 5a8117ac7f.
This commit is contained in:
Toxblh 2019-05-15 16:40:09 +01:00
parent 5fbb2bafc6
commit 8a73fe01e4
2 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.20.2</string>
<string>0.20.1</string>
<key>CFBundleVersion</key>
<string>197</string>
<string>185</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>

View File

@ -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 = .cgAnnotatedSessionEventTap
let loc: CGEventTapLocation = .cghidEventTap
keyDown?.post(tap: loc)
keyUp?.post(tap: loc)
}