-
Notifications
You must be signed in to change notification settings - Fork 57
Does not work on macOS Mojave #32
Description
After installing macOS Mojave on my second machine, I noticed that SlowQuitApps stopped working. The overlay would show up shortly but then immediately stop. I had this happen on High Sierra occasionally as well, but restarting SlowQuitApps usually fixed it. On Mojave, the error occurs every time.
I checked out the repository and tried running it locally, and with a few NSLog statements I figured it where it fails. In SQACmdQStream.m on line 54, CGEventSourceKeyState(kCGEventSourceStateHIDSystemState, kVK_ANSI_Q); returns False even though the Q key is pressed. Apparently, it still recognized the first keypress of CMD + Q, but just not that the Q key is still pressed. If I change line 43 in the same file to const BOOL pressed = cmdPressed;, the app works again (but just doesn't recognize if you stop holding Q which is annoying).
Any ideas on how to fix this?