While using macOS Mojave, I would like the mouse pointer (cursor, carat) to become invisible as soon as any key is pressed, including modifier and navigation keys.
- The mouse should remain invisible until moved.
- The mouse must remain at the same coordinates as when it disappeared; no sending it off the screen, out of sight.
I have tried Cursorcerer which allows a single hotkey to hide the mouse and also an idle timer, neither of those features address the problem. Many Mac applications (iTerm2, Sublime Text, Firefox) have settings that hide the mouse when keys are pressed. Some applications (Chrome, LibreOffice) do not. I have investigated modifying keyloggers in Python (https://github.com/beatsbears/pkl) with
and Objective-C (https://github.com/neilco/keylogger) with
Those calls to setHiddenUntilMouseMoves do not cause the mouse to hide. A recent OS update (10.14.5) is preventing them from running.
Can anyone suggest a way for me to achieve my desired outcome?
I am open to using terminal commands, 3rd party software, etc.