Skip to content

Does not work on macOS Mojave #32

@stefandesu

Description

@stefandesu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions